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.
9 years, 1 month 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