From 228f28fa66b672535663aa9aa4d12ede8b1a8fc5 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 16 Sep 2024 22:15:51 +0000 Subject: [PATCH] stm32g4: flash: fix OPTR_DUALBANK definition off by one error transcribing the document. Fixes: https://github.com/libopencm3/libopencm3/issues/1559 --- include/libopencm3/stm32/g4/flash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/libopencm3/stm32/g4/flash.h b/include/libopencm3/stm32/g4/flash.h index 9fdd1cd1..1446714d 100644 --- a/include/libopencm3/stm32/g4/flash.h +++ b/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)