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?
Custom gpio interrupt handler during boot time. how?
-
- Posts: 1
- Joined: Wed Sep 06, 2023 7:32 pm
Re: Custom gpio interrupt handler during boot time. how?
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.
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.
Who is online
Users browsing this forum: No registered users and 11 guests