mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(esp_hw_support): add new API to get all wakeup sources
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2019-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2019-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -66,9 +66,15 @@ extern "C" {
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user