From e87529b4e434e1c500a71e9582d214ab0d0afe35 Mon Sep 17 00:00:00 2001 From: Marius Date: Sun, 15 Sep 2019 22:38:18 +0200 Subject: [PATCH] Pull-up on RX pin --- cpu/stm32_common/periph/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/stm32_common/periph/uart.c b/cpu/stm32_common/periph/uart.c index 28cc9ddfb6..e93f97f80e 100644 --- a/cpu/stm32_common/periph/uart.c +++ b/cpu/stm32_common/periph/uart.c @@ -88,7 +88,7 @@ static inline void uart_init_pins(uart_t uart, uart_rx_cb_t rx_cb) #endif /* configure RX pin */ if (rx_cb) { - gpio_init(uart_config[uart].rx_pin, GPIO_IN); + gpio_init(uart_config[uart].rx_pin, GPIO_IN_PU); #ifndef CPU_FAM_STM32F1 gpio_init_af(uart_config[uart].rx_pin, uart_config[uart].rx_af); #endif