Skip to content

Commit d198cba

Browse files
committed
core: uart: enable EXTI wakeup interrupt if defined
Need to be defined for some MCU to be able to wakeup from STOP mode. Example for WL55JCI to wake up from LPUART1: #define UART_WAKEUP_EXTI_LINE LL_EXTI_LINE_28 Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent cf4b4a7 commit d198cba

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

libraries/SrcWrapper/src/stm32/uart.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,10 @@ void uart_config_lowpower(serial_t *obj)
603603
break;
604604
#endif
605605
}
606+
#if defined(UART_WAKEUP_EXTI_LINE)
607+
/* Enable EXTI wakeup interrupt if defined */
608+
LL_EXTI_EnableIT_0_31(UART_WAKEUP_EXTI_LINE);
609+
#endif
606610
hsem_unlock(CFG_HW_RCC_CRRCR_CCIPR_SEMID);
607611
}
608612
#endif

0 commit comments

Comments
 (0)