summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2022-01-20 13:18:33 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2022-01-26 23:40:29 +0100
commit267c99850a0795b1563725c33674f2c62f6942a8 (patch)
treed446995cf2c7b0098b4c261eb358712c3683c2ee /rcc
parented1731d14aa7036376c7a68a6689f76ff61c0985 (diff)
stm32_syscfg: convert to modern.
Includes the f4, l0 and wb. f4 renames MEMRM to MEMRMP to be both consistent with other parts and consistent with ref man. Retested on the WB, but l0 and f4 code was simply moved. For yaml files, given how varied syscfg is, we default to using the family name as the type, but still allow overriding via explicit type in the yaml file if desired. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
Diffstat (limited to 'rcc')
-rw-r--r--rcc/syscfg.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/rcc/syscfg.h b/rcc/syscfg.h
deleted file mode 100644
index 74c3a07..0000000
--- a/rcc/syscfg.h
+++ /dev/null
@@ -1,19 +0,0 @@
-#ifndef SYSCFG_H
-#define SYSCFG_H
-
-#include <stdint.h>
-
-struct SYSCFG_t {
- volatile uint32_t MEMRM;
- volatile uint32_t PMC;
- volatile uint32_t EXTICR[4];
- volatile uint32_t CMPCR;
-};
-
-#if defined(STM32F4)
-static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40013800;
-#endif
-
-void rcc_init();
-
-#endif