Task: block on queue & semaphore
Posted by Amanda Wynne
on May 3, 2009
Is it possible to have a task which blocks on both a queue and a semaphore?
I have a pin interrupt (from a tacho). It puts the current value of xTicks onto a queue. The task blocks on this queue, and counts pulses and total accumulated time.
The tick interrupt sets a semaphore at exactly one second. At this semaphore, the tacho task needs to send its accumulated data to a queue for another task.
Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd..
See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.