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] [December 2009 Threads] xQueueGenericSend on AVRPosted by Geza Balazs on December 8, 2009 Hi, xQueueGenericSend seems to take several hundreds of ticks to execute with interrupts disabled on AVR. This may be excessive in some cases in my application because my input capture IRQ can be delayed by even 1200-1300 cycles. Is there some way to decrease this latency? Thanks, Geza
RE: xQueueGenericSend on AVRPosted by Dave on December 8, 2009 Two ways to make sure its fast...
i/ Make sure the system is in a state where the task calling xQueueGenericSend() does not go round any loops inside the function.
ii/ Make sure the task calling xQueueGenericSend() does not get put into the blocked state within the function (because sending to the queue unblocks another task).
RE: xQueueGenericSend on AVRPosted by Geza Balazs on December 8, 2009 Ok, thanks! However, I don't fully understand (i). I've checked the code, it has a for(;;) statement at the beginning, but it's not wrapped by a critical section, so some time still in the loop interrupts will be re-enabled, right? So how does it impact my case?
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|