summaryrefslogtreecommitdiff
path: root/stmhal/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/uart.c')
-rw-r--r--stmhal/uart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c
index fb1386d04..9ff1668e3 100644
--- a/stmhal/uart.c
+++ b/stmhal/uart.c
@@ -233,6 +233,7 @@ STATIC bool uart_init2(pyb_uart_obj_t *uart_obj) {
uart_obj->uart.Instance = UARTx;
// init GPIO
+ mp_hal_gpio_clock_enable(GPIO_Port);
GPIO_InitTypeDef GPIO_InitStructure;
GPIO_InitStructure.Pin = GPIO_Pin;
GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;