From 7b2d322df819e8a339cdb534e69d8e205765d3b2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 29 Mar 2015 21:37:03 +0200 Subject: Added STM32L0 support. --- usart/usart.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usart') 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 -- cgit v1.2.3