feat(sleep): support vad wakeup hp core

This commit is contained in:
Armando
2024-10-09 11:26:57 +08:00
committed by Armando (Dou Yiwen)
parent 60c005d1dc
commit 6db48cff25
8 changed files with 68 additions and 1 deletions

View File

@@ -118,6 +118,7 @@ typedef enum {
ESP_SLEEP_WAKEUP_COCPU, //!< Wakeup caused by COCPU int
ESP_SLEEP_WAKEUP_COCPU_TRAP_TRIG, //!< Wakeup caused by COCPU crash
ESP_SLEEP_WAKEUP_BT, //!< Wakeup caused by BT (light sleep only)
ESP_SLEEP_WAKEUP_VAD, //!< Wakeup caused by VAD
} esp_sleep_source_t;
/**
@@ -179,6 +180,16 @@ esp_err_t esp_sleep_enable_ulp_wakeup(void);
*/
esp_err_t esp_sleep_enable_timer_wakeup(uint64_t time_in_us);
#if SOC_LP_VAD_SUPPORTED
/**
* @brief Enable wakeup by VAD
*
* @return
* - ESP_OK on success
*/
esp_err_t esp_sleep_enable_vad_wakeup(void);
#endif
#if SOC_TOUCH_SENSOR_SUPPORTED
/**
* @brief Enable wakeup by touch sensor