Measuring the RTC Timer during deep sleep
Posted: Thu Nov 11, 2021 4:55 pm
Hello, I'm driving the ESP32 into a deep sleep and enabling 2 sources to wake it up, one is the Timer & the other is one of the GPIO as a touchpad. using the I can set the time interval that wakes the ESP up, but how I can measure the elapsed time when the ESP is in a deep sleep and it wakes up by the touch pin (while the timer period still not finished yet)? Or how I can pause the Timer if the waking reason was not the Timer?
Code: Select all
esp_sleep_enable_timer_wakeup