From 25acaa58783b4d046acbe961cb62efe0b39ec981 Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 22 Oct 2012 21:29:42 +0000 Subject: Add usart support for L1. Only tested with basic tx blocking, ie, the same example code as on F2/F4, but the description of the block is almost identical. --- include/libopencm3/stm32/l1/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/libopencm3') diff --git a/include/libopencm3/stm32/l1/gpio.h b/include/libopencm3/stm32/l1/gpio.h index 76325a9..a39c9f6 100644 --- a/include/libopencm3/stm32/l1/gpio.h +++ b/include/libopencm3/stm32/l1/gpio.h @@ -152,7 +152,7 @@ #define GPIO_MODE_MASK(n) (0x3 << (2 * (n))) #define GPIO_MODE_INPUT 0x00 /* Default */ #define GPIO_MODE_OUTPUT 0x01 -#define GPIO_MODE_ALTFN 0x02 +#define GPIO_MODE_AF 0x02 #define GPIO_MODE_ANALOG 0x03 /* --- GPIOx_OTYPER values -------------------------------------------- */ -- cgit v1.2.3