From ed1731d14aa7036376c7a68a6689f76ff61c0985 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Wed, 19 Jan 2022 22:53:53 +0000 Subject: syscfg: stm32wb: legacy implementation Functional, after much hair tearing. Signed-off-by: Karl Palsson --- syscfg/syscfg.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- cgit v1.2.3