summaryrefslogtreecommitdiff
path: root/usart/usart.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2015-03-29 21:37:03 +0200
commit49012588461f1a43e9e476f676d946d91c3df9e7 (patch)
treed9e6ab6bf279889ca660ddb86f3942d41e54bf3e /usart/usart.h
parent7b4ba03bc45dfed09759b9d0f99f6ddfde51ac43 (diff)
Added STM32L0 support.
Diffstat (limited to 'usart/usart.h')
-rw-r--r--usart/usart.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usart/usart.h b/usart/usart.h
index c075b9b..f318d3e 100644
--- a/usart/usart.h
+++ b/usart/usart.h
@@ -15,7 +15,7 @@ struct USART_reg_t {
volatile uint32_t CR3;
volatile uint32_t GTPR;
};
-#elif defined(STM32F3)
+#elif defined(STM32F3) || defined(STM32L0)
struct USART_reg_t {
volatile uint32_t CR1;
volatile uint32_t CR2;
@@ -51,6 +51,9 @@ static USART_t USART3(0x40004800, 36000000);
static USART_t USART1(0x40011000, 84000000);
static USART_t USART2(0x40004400, 42000000);
static USART_t USART3(0x40004800, 42000000);
+#elif defined(STM32L0)
+static USART_t USART1(0x40013800, 32000000);
+static USART_t USART2(0x40004400, 32000000);
#endif
#endif