Quality RTOS & Embedded Software

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


Loading

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

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 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.


Careers

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

Renesas

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