summaryrefslogtreecommitdiff
path: root/syscfg
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2016-08-18 23:36:07 +0200
commit7b2d322df819e8a339cdb534e69d8e205765d3b2 (patch)
treec18a85a712285d6f3939113824eb2f2636833992 /syscfg
parent29d8f1b4e89f31e2f3b448c4d40c6c2518629686 (diff)
Added STM32L0 support.
Diffstat (limited to 'syscfg')
-rw-r--r--syscfg/syscfg.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/syscfg/syscfg.h b/syscfg/syscfg.h
new file mode 100644
index 0000000..c29d574
--- /dev/null
+++ b/syscfg/syscfg.h
@@ -0,0 +1,24 @@
+#ifndef SYSCFG_H
+#define SYSCFG_H
+
+#include <stdint.h>
+
+#if defined(STM32L0)
+
+struct SYSCFG_t {
+ volatile uint32_t CFGR1;
+ volatile uint32_t CFGR2;
+ volatile uint32_t EXTICR1;
+ volatile uint32_t EXTICR2;
+ volatile uint32_t EXTICR3;
+ volatile uint32_t EXTICR4;
+ volatile uint32_t COMP1_CTRL;
+ volatile uint32_t COMP2_CTRL;
+ volatile uint32_t CFGR3;
+};
+
+static SYSCFG_t& SYSCFG = *(SYSCFG_t*)0x40010000;
+
+#endif
+
+#endif