diff options
Diffstat (limited to 'chip/stm32/uart.c')
-rw-r--r-- | chip/stm32/uart.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chip/stm32/uart.c b/chip/stm32/uart.c index 77b5d93623..dab5231845 100644 --- a/chip/stm32/uart.c +++ b/chip/stm32/uart.c @@ -7,6 +7,7 @@ #include "common.h" #include "clock.h" +#include "gpio.h" #include "hooks.h" #include "registers.h" #include "task.h" @@ -146,6 +147,9 @@ void uart_init(void) STM32_RCC_APB1ENR |= STM32_RCC_PB1_USART ## UARTN; #endif + /* Configure GPIOs */ + gpio_config_module(MODULE_UART, 1); + /* * UART enabled, 8 Data bits, oversampling x16, no parity, * RXNE interrupt, TX and RX enabled. |