From 234a69eb4f58a1b57e22656994adbd8f871bf7f5 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Mon, 10 Dec 2012 19:09:05 +0100 Subject: Added ethernet and syscfg register definitions. --- rcc/syscfg.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 rcc/syscfg.h (limited to 'rcc/syscfg.h') 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 + +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 -- cgit v1.2.3