Quality RTOS & Embedded Software

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


full queue in ISR

Posted by Jack Peacock on August 30, 2007
Inside an interrupt ISR for a UART, I receive data and place it in a queue with the xQueueSendFromISR call. Is there a way, inside the ISR, to determine if the queue is full? I want to log if the ISR has to drop characters due to lack of queue space.
Jack Peacock

RE: full queue in ISR

Posted by Dave on August 31, 2007
No, this is a bit amiss. You could easily add a parameter to the function to return this information. Or add a version of uxQueueMessagesWaiting that can be called from an interrupt (basically don't use any portENTER/EXIT_CRITICAL_SECTION calls).

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

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

Latest News

Version 10.1.0 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

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

Xilinx Microblaze and Zynq partner