8 years, 9 months ago.

How to use Queue in an ISR?

I want use mbed RTOS Queue in an ISR. Followed the RTOS handbook. This works if ISR is generated from say Ticker. I have an interrupt generated on a device(FRDM-KL25Z) pin. So following is my code which can be compiled. However it doesn't work. If I replace "queue_isr" by my own function. that too doesn't work. Also note that the interrupt functionality itself works w/o use of Queue.

So is this a bug or my mistake? Program is in the attachment.

/media/uploads/hemantnjoshi/main.cpp

Be the first to answer this question.