Quality RTOS & Embedded Software

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


Loading

Should xQueueReceive() or xQueueReceiveFromISR() be used to receive from xQueueSendToBackFromISR()?

Posted by spflanze on March 4, 2016

I have a callback within which I am using xQueueSendToBackFromISR() to send to a receiving thread that is not a callback or interrupt service routine. In the receiving thread should I use xQueueReceive() or xQueueReceiveFromISR()?

In other words should only xQueueReceiveFromISR() by used to receive from xQueueSendToBackFromISR()? Or if not in a callback or interrupt service routine should xQueueReceive() be used instead?


Should xQueueReceive() or xQueueReceiveFromISR() be used to receive from xQueueSendToBackFromISR()?

Posted by edwards3 on March 4, 2016

You only need to use the FromISR API inside an ISR, so in your case only in the callback. The ISR uses xQueueSendFromISR() and the task uses xQueueReceive(), that is fine.


[ 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