nobody wrote on Tuesday, December 27, 2005:
I need to read/write data from/to device (SPI) in buffered mode.
I have a user task T calling a ‘read’ function to get data from SPI through the ISR routine.
I was inspired from ‘serial.c’ example and so I put dataIN and dataOUT queue.
In the dataIN queue the ISR routine puts new data coming from device (with xQueueSendFromISR), meanwhile the user task T are waiting for them (with xQueueReceive).
How can I wake the task T immediatly after the end of the ISR routine?
I don’t understand the usage of the parameter xTaskWokenByPost (the last parameter) of xQueueSendFromISR, if I have a user task waiting for data on a queue, is it possible to make it wait for N queue elements?