11 months, 2 weeks 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:
11 months, 1 week 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