Hi,
I need to keep track of time during light sleep. Since the CPU is off I assume none of the timers will work. Is there another way to keep track of time during light sleep? Can RTC be used somehow?
Thanks
Time keeping in light sleep
Re: Time keeping in light sleep
In light sleep, timekeeping is done by RTC timer. On exiting sleep, system time (as reported by 'gettimeofday') will be updated based to the RTC timer.
There's another change which will be merged soon, which also adjusts time reported by esp_timer_get_time.
If you want to implement your own timekeeping mechanism, you can get RTC time from esp_clk_rtc_time function in esp_clk.h.
There's another change which will be merged soon, which also adjusts time reported by esp_timer_get_time.
If you want to implement your own timekeeping mechanism, you can get RTC time from esp_clk_rtc_time function in esp_clk.h.
Who is online
Users browsing this forum: No registered users and 96 guests