Browse Source

stm32g4: flash: fix OPTR_DUALBANK definition

off by one error transcribing the document.

Fixes: https://github.com/libopencm3/libopencm3/issues/1559
pull/1256/merge
Karl Palsson 2 months ago
parent
commit
228f28fa66
  1. 2
      include/libopencm3/stm32/g4/flash.h

2
include/libopencm3/stm32/g4/flash.h

@ -143,7 +143,7 @@
#define FLASH_OPTR_SRAM_RST (1 << 25)
#define FLASH_OPTR_SRAM_PE (1 << 24)
#define FLASH_OPTR_nBOOT1 (1 << 23)
#define FLASH_OPTR_DUALBANK (1 << 21)
#define FLASH_OPTR_DUALBANK (1 << 22)
#define FLASH_OPTR_BFB2 (1 << 20)
#define FLASH_OPTR_WWDG_SW (1 << 19)
#define FLASH_OPTR_IWDG_STDBY (1 << 18)

Loading…
Cancel
Save