aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/rcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/rcc.c')
-rw-r--r--src/lib/rcc.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/rcc.c b/src/lib/rcc.c
new file mode 100644
index 0000000..e29b010
--- /dev/null
+++ b/src/lib/rcc.c
@@ -0,0 +1,19 @@
+#include "libmaple.h"
+#include "rcc.h"
+
+typedef struct RCC {
+ volatile uint32 CR;
+ volatile uint32 CFGR;
+ volatile uint32 CIR;
+ volatile uint32 APB2STR;
+ volatile uint32 APB1RSTR;
+ volatile uint32 AHBENR;
+ volatile uint32 APB2ENR;
+ volatile uint32 APB1ENR;
+ volatile uint32 BDCR;
+ volatile uint32 CSR;
+} RCC;
+
+void rcc_enable(uint32 p) {
+
+}