Question about queue
Posted by Oliver
on December 2, 2009
I want to communicate two task in FreeRTOS port to AVR32. I woluld like to known what is the time to send a data (byte) to one queue.
Mi RTOS use a tick 1msecond and my clock frequency is 66Mhz
Can i use queue? or must i use Semaphore? (i need the fastest solution)
RE: Question about queue
Posted by Dave
on December 3, 2009
The fastest solution would be to use neither, just use an array as a circular buffer. If you want to send lots of data then use a circular buffer to store the data, and then use a single send to a semaphore to unblock the task that will process the data.
I would say though, only you know what speed you need a response, so try it, see if it works, if it does great, if it doesn't then think again.
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.