Page 1 of 1

RTOS Post Sleep Processing

Posted: Tue Dec 01, 2020 8:36 pm
by tlechman
Hi!

With ESP32, the user doesn't write the FreeRTOSConfig.h file so I can't seem to find if there is any access to the functions configPreSleepProcessing and configPostSleepProcessing. These are generally placed around the sleep command during the tickless idle task. Is there a functional equivalent to these commands for esp32?

I'd like to enable automatic light sleep but have some code run before and after light sleep entry. I'm aware of this function: esp_wake_deep_sleep but this is supposed to run before the bootloader on wake from deepsleep so it isn't helpful.

Thanks!

Re: RTOS Post Sleep Processing

Posted: Wed Dec 09, 2020 7:20 pm
by tlechman
Bumping for visibility..