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.
1 parent 4ee800a commit 4ea2a31Copy full SHA for 4ea2a31
libraries/SrcWrapper/src/stm32/uart.c
@@ -610,6 +610,9 @@ void uart_config_lowpower(serial_t *obj)
610
#endif
611
#if defined(LPUART1_BASE) && defined(__HAL_RCC_LPUART1_CONFIG)
612
case LPUART1_INDEX:
613
+#ifdef __HAL_RCC_LPUART1_CLKAM_ENABLE
614
+ __HAL_RCC_LPUART1_CLKAM_ENABLE();
615
+#endif
616
if (__HAL_RCC_GET_LPUART1_SOURCE() != RCC_LPUART1CLKSOURCE_HSI) {
617
__HAL_RCC_LPUART1_CONFIG(RCC_LPUART1CLKSOURCE_HSI);
618
}
0 commit comments