Quality RTOS & Embedded Software

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




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 ]    [ 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