Skip to content

Commit 000bf7b

Browse files
committed
fix(usart): enable peripheral bus clock when SRD domain is in DRUN
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 4ee800a commit 000bf7b

File tree

1 file changed

+3
-0
lines changed
  • libraries/SrcWrapper/src/stm32

1 file changed

+3
-0
lines changed

libraries/SrcWrapper/src/stm32/uart.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,9 @@ void uart_config_lowpower(serial_t *obj)
610610
#endif
611611
#if defined(LPUART1_BASE) && defined(__HAL_RCC_LPUART1_CONFIG)
612612
case LPUART1_INDEX:
613+
#ifdef __HAL_RCC_LPUART1_CLKAM_ENABLE
614+
__HAL_RCC_LPUART1_CLKAM_ENABLE();
615+
#endif
613616
if (__HAL_RCC_GET_LPUART1_SOURCE() != RCC_LPUART1CLKSOURCE_HSI) {
614617
__HAL_RCC_LPUART1_CONFIG(RCC_LPUART1CLKSOURCE_HSI);
615618
}

0 commit comments

Comments
 (0)