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) Amazon Web Services, Inc. or its affiliates. All rights reserved.