RTOS Post Sleep Processing

tlechman
Posts: 4
Joined: Tue Sep 15, 2020 8:42 pm

RTOS Post Sleep Processing

Postby tlechman » Tue Dec 01, 2020 8:36 pm

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!

tlechman
Posts: 4
Joined: Tue Sep 15, 2020 8:42 pm

Re: RTOS Post Sleep Processing

Postby tlechman » Wed Dec 09, 2020 7:20 pm

Bumping for visibility..

Who is online

Users browsing this forum: Google [Bot], snutw_ and 97 guests