Code: Select all
REG_CLR_BIT(RTC_CNTL_STATE0_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN);
Code: Select all
REG_CLR_BIT(RTC_CNTL_STATE0_REG, RTC_CNTL_ULP_CP_SLP_TIMER_EN);
Thank you!You can call esp_timer_get_time or gettimeofday functions. Time reported by these function will advance correctly (up to the precision of the RTC clock) while the chip is in light sleep.