Custom gpio interrupt handler during boot time. how?

dibalavs
Posts: 2
Joined: Thu Jan 17, 2019 7:04 am

Custom gpio interrupt handler during boot time. how?

Postby dibalavs » Thu Jan 17, 2019 7:21 am

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?

Who is online

Users browsing this forum: No registered users and 2 guests