Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
1 year, 7 months ago.
Queueing up tasks from a frequent ISR
Great explanation of the EventQueue. If I were to add a function (ie: printf) to a queue inside my ISR and the ISR is called frequently, how can I expect the queue buffer to respond? I have seen in the documentation how to adjust the size of the queue when instantiated, but it is still somewhat unclear to me.
Question relating to:
1 year, 6 months ago.
If I am interpreting your question correctly, you are asking how Mbed responds when the event queue fills up. When you make the call to 'call', it returns a "unique id that represents the posted event and can be passed to cancel, or an id of 0 if there is not enough memory to allocate the event". EventQueue API
So from this it appears that you will get a zero as a return value from the call and your code could make appropriate decisions.
I hope this helps,
++ Earl, team Mbed