From 49012588461f1a43e9e476f676d946d91c3df9e7 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 29 Mar 2015 21:37:03 +0200 Subject: Added STM32L0 support. --- syscfg/syscfg.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 syscfg/syscfg.h (limited to 'syscfg') 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 + +#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 -- cgit v1.2.3