From 0cd4d5d5ea4617e093319d694ae6f1692d021a6c Mon Sep 17 00:00:00 2001 From: Arne Jansen Date: Wed, 1 Jan 2020 10:20:50 +0000 Subject: stm32: add alternate pinout for USART2 Added to both generic stm32 and stm32f0 Signed-off-by: Arne Jansen --- src/stm32/serial.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/stm32/serial.c') diff --git a/src/stm32/serial.c b/src/stm32/serial.c index 20eda817..0e57a986 100644 --- a/src/stm32/serial.c +++ b/src/stm32/serial.c @@ -24,6 +24,12 @@ DECL_CONSTANT_STR("RESERVE_PINS_serial", "PA3,PA2"); #define GPIO_Tx GPIO('A', 2) #define USARTx USART2 #define USARTx_IRQn USART2_IRQn +#elif CONFIG_SERIAL_PORT == 102 +DECL_CONSTANT_STR("RESERVE_PINS_serial", "PA14,PA15"); +#define GPIO_Rx GPIO('A', 14) +#define GPIO_Tx GPIO('A', 15) +#define USARTx USART2b +#define USARTx_IRQn USART2_IRQn #elif CONFIG_SERIAL_PORT == 103 DECL_CONSTANT_STR("RESERVE_PINS_serial", "PD9,PD8"); #define GPIO_Rx GPIO('D', 9) -- cgit v1.2.3-70-g09d2