We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 34dd527 + 8a3fd6a commit 647b581Copy full SHA for 647b581
targets/TARGET_STM/serial_api.c
@@ -568,12 +568,12 @@ HAL_StatusTypeDef init_uart(serial_t *obj)
568
#if defined(LPUART1_BASE)
569
if (huart->Instance == LPUART1) {
570
if (obj_s->baudrate <= 9600) {
571
-#if ((MBED_CONF_TARGET_LPUART_CLOCK_SOURCE) & USE_LPUART_CLK_LSE) && !TARGET_STM32H7 && !TARGET_STM32WB
+#if ((MBED_CONF_TARGET_LPUART_CLOCK_SOURCE) & USE_LPUART_CLK_LSE) && defined(USART_CR3_UCESM)
572
HAL_UARTEx_EnableClockStopMode(huart);
573
#endif
574
HAL_UARTEx_EnableStopMode(huart);
575
} else {
576
-#if (!defined(TARGET_STM32H7) && !defined(TARGET_STM32WB))
+#if defined(USART_CR3_UCESM)
577
HAL_UARTEx_DisableClockStopMode(huart);
578
579
HAL_UARTEx_DisableStopMode(huart);
0 commit comments