1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #12236 from twostairs/cpu_stm32_common_periph_gpip-pd

cpu/stm32_common/periph/gpio: Pull-down on gpio_init_af
This commit is contained in:
Alexandre Abadie 2019-09-18 20:02:40 +02:00 committed by GitHub
commit 711854562b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,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