Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

Question about queue

Posted by Oliver on December 2, 2009
Hello everybody!

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)

thanks!
Oliver

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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS