FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [January 2016 Threads] what is difference between xqueuesend and xqueuesendtobackfromisrPosted by ephobb on January 24, 2016 Hello,
i want to know the difference between xqueuesend and xqueuesendtobackfromisr.
I know we use api xqueuesend from normal flow and we use api xqueuesendtobackfromisr, when we are sending data to queue from ISR routine.
But i want to know, how they are differ?
what is difference between xqueuesend and xqueuesendtobackfromisrPosted by richard_damon on January 24, 2016 First, xqueuesend and xquesendtoback are aliases for the same function. So the difference you are looking at is the difference between a non-fromisr function and a fromisr function. The major difference between them is that the non-ISR version give you the option to block the task for awhile for the operation to complete if needed, while the ISR versions do not (you DON'T want to delay an ISR execution) but instead give you a flag to let you decide if you need to run the scheduler.
A second internal difference is the way critical sections are implemented. The non-ISR versions use slightly simpler code knowing they aren't in an interrupt context.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|