We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
DUALBANK_SWAP
1 parent 0fb1f81 commit 4e6e81cCopy full SHA for 4e6e81c
1 file changed
hal/stm32h5.h
@@ -254,16 +254,11 @@
254
#define FLASH_OPSR_CODE_OPT_CHANGE (0x6 << 29)
255
#define FLASH_OPSR_CODE_OBK_SWAP (0x7 << 29)
256
257
+#define FLASH_OPTSR_CUR (*(volatile uint32_t *)(FLASH_BASE + 0x50))
258
+#define FLASH_OPTSR_PRG (*(volatile uint32_t *)(FLASH_BASE + 0x54))
259
+#define FLASH_OPTSR_SWAP_BANK (1 << 31)
260
261
-
-#if defined(DUALBANK_SWAP)
262
- #define FLASH_OPTSR_CUR (*(volatile uint32_t *)(FLASH_BASE + 0x50))
263
- #define FLASH_OPTSR_PRG (*(volatile uint32_t *)(FLASH_BASE + 0x54))
264
- #define FLASH_OPTSR_SWAP_BANK (1 << 31)
265
-#endif
266
267
/* Register values (for both secure and non secure registers)
268
* RM0481 Table 75 */
269
0 commit comments