diff options
-rw-r--r-- | syscfg/syscfg.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/syscfg/syscfg.h b/syscfg/syscfg.h index c29d574..0006f7b 100644 --- a/syscfg/syscfg.h +++ b/syscfg/syscfg.h @@ -21,4 +21,27 @@ static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40010000; #endif +#if defined(STM32WB) + +struct SYSCFG_t { + volatile uint32_t MEMRMP; + volatile uint32_t CFGR1; + volatile uint32_t EXTICR[4]; + volatile uint32_t SCSR; + volatile uint32_t CFGR2; + volatile uint32_t SWPR; + volatile uint32_t SKR; + volatile uint32_t SWPR2; + uint32_t _reserved1[53]; // basicallly, vrefbuf is in this slot! + volatile uint32_t IMR1; + volatile uint32_t IMR2; + volatile uint32_t C2IMR1; + volatile uint32_t C2IMR2; + volatile uint32_t SIPCR; +}; + +static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40010000; + +#endif + #endif |