mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-19 03:42:43 +08:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user