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:
commit
711854562b
@ -112,7 +112,7 @@ static inline void uart_init_pins(uart_t uart, uart_rx_cb_t rx_cb)
|
|||||||
#endif
|
#endif
|
||||||
/* configure RX pin */
|
/* configure RX pin */
|
||||||
if (rx_cb) {
|
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
|
#ifndef CPU_FAM_STM32F1
|
||||||
gpio_init_af(uart_config[uart].rx_pin, uart_config[uart].rx_af);
|
gpio_init_af(uart_config[uart].rx_pin, uart_config[uart].rx_af);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user