'esp_wake_deep_sleep' GPIO ISR initialization

malachib
Posts: 18
Joined: Tue Aug 28, 2018 9:06 am

'esp_wake_deep_sleep' GPIO ISR initialization

Postby malachib » Wed Oct 17, 2018 9:41 pm

Similar to what's going on here viewtopic.php?t=1674

I would like to register a GPIO-listening ISR as soon as I get an EXT1 deep sleep wakeup. Is it possible to use something like gpio_isr_handler_add within esp_wake_deep_sleep?

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: 'esp_wake_deep_sleep' GPIO ISR initialization

Postby ESP_igrr » Thu Oct 18, 2018 2:46 am

No, the earliest you can register a GPIO ISR is when app_main starts. When deep sleep wake stub is running, FreeRTOS has not started yet, so interrupt servicing using the driver is not possible.

malachib
Posts: 18
Joined: Tue Aug 28, 2018 9:06 am

Re: 'esp_wake_deep_sleep' GPIO ISR initialization

Postby malachib » Thu Oct 18, 2018 4:38 pm

OK, that is helpful to know, thank you.

Presumably one can hook into a bare-metal ISR at this point? My concern would then be: does FreeRTOS blast it away on startup?

Who is online

Users browsing this forum: Marcosss and 117 guests