summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2022-01-19 23:53:53 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-01-26 23:40:29 +0100
commited1731d14aa7036376c7a68a6689f76ff61c0985 (patch)
treec4466d5d338e7775a3300e9fb9b90f4fbb3cb83d
parent5f7df5720d5a43f3c7e1aeea509bcf62e149870a (diff)
syscfg: stm32wb: legacy implementation
Functional, after much hair tearing. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
-rw-r--r--syscfg/syscfg.h23
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