Skip to content

Commit 9ec00b2

Browse files
Cruz Monrreal IICruz Monrreal II
authored andcommitted
Merge branch 'Eman869-fix_lpuart_hsi_power_consumption' of ssh://github.com/Eman869/mbed-os into Eman869-Eman869-fix_lpuart_hsi_power_consumption
2 parents ab20cc3 + c68e7c6 commit 9ec00b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

targets/TARGET_STM/serial_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,9 @@ HAL_StatusTypeDef init_uart(serial_t *obj)
536536
#if defined(LPUART1_BASE)
537537
if (huart->Instance == LPUART1) {
538538
if (obj_s->baudrate <= 9600) {
539+
#if ((MBED_CONF_TARGET_LPUART_CLOCK_SOURCE) & USE_LPUART_CLK_LSE)
539540
HAL_UARTEx_EnableClockStopMode(huart);
541+
#endif
540542
HAL_UARTEx_EnableStopMode(huart);
541543
} else {
542544
HAL_UARTEx_DisableClockStopMode(huart);

0 commit comments

Comments
 (0)