diff options
Diffstat (limited to 'rcc/syscfg.h')
-rw-r--r-- | rcc/syscfg.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/rcc/syscfg.h b/rcc/syscfg.h new file mode 100644 index 0000000..74c3a07 --- /dev/null +++ b/rcc/syscfg.h @@ -0,0 +1,19 @@ +#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 |