Quality RTOS & Embedded Software

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




Loading

QueueLenth and IsQueueEmpty

Posted by Jan.Topolski on October 18, 2007
Hi Richard,
I started to play with FreeRTOS integrated in J.Wren's LPC2148 package, recently. I was really amazed by the large scope of the package and by magnitude of work you put into RTOS itself.
In my application I wanted to check if a given queue is empty, but I couldn't find such a function in your API. I found out that in revision 4.5.0 (mine is older 4.4.0) you introduced xQueuePeek and it can be used as a test whether queue is empty.
Why QueueLenth(aQueue) and IsQueueEmpty(aQueue) are not present in API ?

I also want to use the trace facility, but I can not localize tracecon.exe utility.

Can you be so kind and address these two issues.

Thanks in advance.

Great, great job !

Jan Topolski

RE: QueueLenth and IsQueueEmpty

Posted by Richard on October 19, 2007
See the API funciton uxQueueMessagesWaiting() here: http://www.freertos.org/a00018.html#ucQueueMessagesWaiting


>but I can not localize tracecon.exe utility

I'm not sure what you mean be localize?

Regards.

RE: QueueLenth and IsQueueEmpty

Posted by Ricky on October 19, 2007
I think he means "locate".

RE: QueueLenth and IsQueueEmpty

Posted by Richard on October 19, 2007
... in which case you can find it in the FreeRTOS/TraceCon directory within the FreeRTOS.org zip file download.

Regards.

RE: QueueLenth and IsQueueEmpty

Posted by Jan.Topolski on October 19, 2007
Ricky is right. I couldn't find TraceCon.exe, for I downloaded FreeRTOS within J. Wren's LPC2148 package and TraceCon stuff is not included in it.

Thanks.


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




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.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists