Page 1 of 1

Custom gpio interrupt handler during boot time. how?

Posted: Thu Jan 17, 2019 7:21 am
by dibalavs
Hi,
I am trying to write pulse counter, which after some timeout (once per day) transmit collected data to the domoticz server.

1) I can count pulses during deep sleep by using custom wake stub from https://gist.github.com/igrr/54f7fbe051 ... d7fbecfeab
2) I can count pulses after wake up during transmission of collected data by setting GPIO interrupt handler.

But I do not understand how to count pulses during boot time? Between exit from wake stub handler and enter to app_main() function?
booting takes around 0.5 sec. During such huge time some pulses can happened. Is it possible to setup interrupt handler in wake stub, which will be working during booting?

Re: Custom gpio interrupt handler during boot time. how?

Posted: Wed Sep 06, 2023 7:38 pm
by naticklamb
I have same interest. Did you ever find a solution to this?
I see code in esp-idf/components/esp_hw_support/sleep_modes.c but it is not clear from this if interrupts may get disabled durring the rest of boot.