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] [April 2015 Threads]
This might sound as a strange question but I need a definitive answer.
Can interrupts be preempted in FreeRTOS or they have the highest priority?
Any help is appreciated.
I'm not sure I understand your question.
If you mean, can interrupts be preempted by other interrupt - in other words - can interrupts nest - then the answer is "it depends on the FreeRTOS port you are using".
If you mean, can interrupts be preempted by tasks, then the answer is quite definitely no. Task scheduling is controlled by software, and tasks run when no interrupts are executing, just like a non RTOS program can only run when no interrupts are executing. Interrupts on the other hand are scheduled by the hardware, and there is nothing the task code can do to change how the hardware works - although they can disable interrupts globally, or just a subset of interrupts.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.