This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

fifo reentrant

I am using esb in SDK 11 and my understanding is that the radio causes interrupts that are forcing and cannot be disabled. These in turn causes software interrupt 10 to be triggered and my callback is called. Am I right in this description?

To my question:

I am processing stuff in my main loop and in the event handler I need to read/write the same data structures. As far as I understand I run the risk of being interrupted in the middle of processing data in the main loop and causing reentrant problem when the callback affects the same data.

Can I disable software interrupts in the main loop? Will I then risk missing these are are they 'postponed' to when I enable the interrupts again?

Can I use the fifo.h implementation in this case? Is that implementation reentrant?

Are there any other usual ways of solving this problem that I should know about?

Related