feat(esp_hw_support): add new API to get all wakeup sources

This commit is contained in:
wuzhenghui
2025-08-26 21:53:56 +08:00
parent 104b7994e2
commit 18f7e790f1
3 changed files with 99 additions and 1 deletions
@@ -84,9 +84,15 @@ typedef enum {
#if SOC_UART_SUPPORT_WAKEUP_INT
#define RTC_UART0_TRIG_EN PMU_UART0_WAKEUP_EN //!< UART0 wakeup (light sleep only)
#define RTC_UART1_TRIG_EN PMU_UART1_WAKEUP_EN //!< UART1 wakeup (light sleep only)
#if SOC_UART_HP_NUM > 2
#define RTC_UART2_TRIG_EN PMU_UART2_WAKEUP_EN //!< UART2 wakeup (light sleep only)
#else
#define RTC_UART2_TRIG_EN 0
#endif
#else
#define RTC_UART0_TRIG_EN 0
#define RTC_UART1_TRIG_EN 0
#define RTC_UART2_TRIG_EN 0
#endif
#if SOC_BT_SUPPORTED