-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListenMode ISR hook #43
Comments
Any suggestion how you'd like this implemented? |
I guess there are two ways to go about this.
|
Was this issue not already solved by the kiwi version? On 07 Jun 2016, at 04:01, Jonathan Karras <notifications@github.commailto:notifications@github.com> wrote: I guess there are two ways to go about this.
You are receiving this because you are subscribed to this thread. |
@rrobinet I can't find anything from kiwi. Where would you put the hook to be place in the listenModeInterruptHandler? I think it would make sense to put this at the end of it. It should then be a minimal function that just sets a flag in user land so they know it woke from ListenMode. Does that sound reasonable? |
Like @rrobinet said either need a way when the uC wakes to check if the radio did the waking. Or a call back like you referenced so the user can set their own variable or some such. My personal need wouldn't need the call back to be called inside the ISR but it may need to be to keep from getting interrupted and losing state. Like you mention this can get dangerous for those not familiar with doing a minimal amount of items inside the ISR. If you go the callback route it should be the very last thing called inside your handler it would seem. |
I am not sure we are talking about the same problem, but I refer to a SPI interrupt issue while using an ethernet shield together with rfm69 transceiver I am using a 'old' rfm library version (not the ATC one) patched with the solution proposed by kiwi which solves this interrupt conflict. Robert On 09 Jun 2016, at 01:07, Jonathan Karras <notifications@github.commailto:notifications@github.com> wrote: Like @rrobinethttps://github.com/rrobinet said either need a way when the uC wakes to check if the radio did the waking. Or a call back like you referenced so the user can set their own variable or some such. My personal need wouldn't need the call back to be called inside the ISR but it may need to be to keep from getting interrupted and losing state. Like you mention this can get dangerous for those not familiar with doing a minimal amount of items inside the ISR. If you go the callback route it should be the very last thing called inside your handler it would seem. You are receiving this because you were mentioned. |
@rrobinet No conflicts here. Just no way to tell if ListenMode woke from sleep or some other signal on one of the two interrupt pins that can wake the uC from sleep. The RFM69 library already hooks the needed ISR for its own purposes. |
It would be nice to attach a function to the ListenMode ISR from user space. As it stands right now the userland code has no way of knowing if a WDT ISR or ListenMode ISR triggered the wake up.
The text was updated successfully, but these errors were encountered: