From 7b9b63007320d50333f228d5ae367d61ace9319c Mon Sep 17 00:00:00 2001 From: Rodrigo Sim Date: Sun, 7 Jan 2024 19:33:13 -0300 Subject: [PATCH] nucleo-l432kc: Fix board configuration for USART2 --- boards/arm/stm32l4/nucleo-l432kc/include/board.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/boards/arm/stm32l4/nucleo-l432kc/include/board.h b/boards/arm/stm32l4/nucleo-l432kc/include/board.h index 5872e80680..3976a7fc8e 100644 --- a/boards/arm/stm32l4/nucleo-l432kc/include/board.h +++ b/boards/arm/stm32l4/nucleo-l432kc/include/board.h @@ -90,13 +90,9 @@ # define GPIO_USART1_TX GPIO_USART1_TX_2 /* PB6 */ #endif -/* USART2: Connected to STLInk Debug via PA2(TX), PA15(RX) */ +/* USART2: Connected to STLInk Debug via PA2(TX), PA3(RX) */ -#if defined(CONFIG_ARCH_BOARD_USART2_RX_PA3) -# define GPIO_USART2_RX GPIO_USART2_RX_1 /* PA3 */ -#elif defined(CONFIG_ARCH_BOARD_USART2_RX_PA15) -# define GPIO_USART2_RX GPIO_USART2_RX_2 /* PA15 */ -#endif +#define GPIO_USART2_RX GPIO_USART2_RX_1 /* PA3 */ #define GPIO_USART2_TX GPIO_USART2_TX_1 /* PA2 */ #define GPIO_USART2_RTS GPIO_USART2_RTS_2 #define GPIO_USART2_CTS GPIO_USART2_CTS_2