arm/stm32f4: fix SYSCFG register layout

The SYSCFG register block misses two reserved registers between
EXTICR4 and CMPCR. This causes CMPCR to be mapped at the wrong
offset (0x18 instead of 0x20).
Add the missing reserved fields to preserve the correct hardware
register layout according to the STM32F4 reference manual.
This commit is contained in:
Mohamed Ayman
2026-03-18 19:43:25 +00:00
committed by Gedare Bloom
parent 657cd11729
commit 14605b6d2b
@@ -101,6 +101,7 @@ struct stm32f4_syscfg_s {
#define STM32F4_SYSCFG_EXTI15(val) BSP_FLD32(val, 12, 15)
#define STM32F4_SYSCFG_EXTI15_GET(reg) BSP_FLD32GET(reg, 12, 15)
#define STM32F4_SYSCFG_EXTI15_SET(reg, val) BSP_FLD32SET(reg, val, 12, 15)
uint32_t reserved[2];
uint32_t cmpcr; // Compensation cell control register
#define STM32F4_SYSCFG_CMPCR_READY BSP_BIT32(8)
#define STM32F4_SYSCFG_CMPCR_PD BSP_BIT32(0)