Skip to content

Commit 3243b38

Browse files
committed
[STM32L1XX] Fix deinit of SystemCoreClock on ARM toolchain
1 parent 84e65c7 commit 3243b38

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hal/targets/hal/TARGET_STM/TARGET_STM32L1/serial_api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ static void init_uart(serial_t *obj)
6666
UartHandle.Init.Mode = UART_MODE_TX_RX;
6767
}
6868

69+
// Fix because HAL_RCC_GetHCLKFreq() don't update anymore SystemCoreClock
70+
SystemCoreClockUpdate();
71+
6972
HAL_UART_Init(&UartHandle);
7073
}
7174

0 commit comments

Comments
 (0)