mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-03 00:21:44 +01:00
rtc_sleep: workaround systimer stall issue during lightsleep on ESP32C3
This commit is contained in:
@@ -643,6 +643,18 @@ void rtc_sleep_init(rtc_sleep_config_t cfg);
|
||||
*/
|
||||
void rtc_sleep_low_init(uint32_t slowclk_period);
|
||||
|
||||
#if CONFIG_ESP_SLEEP_SYSTIMER_STALL_WORKAROUND
|
||||
/**
|
||||
* @brief Configure systimer for esp32c3 systimer stall issue workaround
|
||||
*
|
||||
* This function configures related systimer for esp32c3 systimer stall issue.
|
||||
* Only apply workaround when xtal powered up.
|
||||
*
|
||||
* @param en enable systimer or not
|
||||
*/
|
||||
void rtc_sleep_systimer_enable(bool en);
|
||||
#endif
|
||||
|
||||
#define RTC_GPIO_TRIG_EN BIT(2) //!< GPIO wakeup
|
||||
#define RTC_TIMER_TRIG_EN BIT(3) //!< Timer wakeup
|
||||
#define RTC_WIFI_TRIG_EN BIT(5) //!< WIFI wakeup (light sleep only)
|
||||
|
||||
Reference in New Issue
Block a user