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] [July 2008 Threads] Undefined PriorityPosted by Alexander Zurkan on July 26, 2008 Hi there,
I examined FreeRTOS in depth a little bit the last few days and came across some questions I'd like to discuss with you. I will start a new thread for each question, because they belong to different categories. I also need some webspace for uploading images to explain my other questions, it will take while before I will post them. So lets beginn with the first simple one:
In the FreeRTOS configuration I specified 8 priorities as: #define configMAX_PRIORITIES( ( unsigned portBASE_TYPE ) 8 ). Then I created a task with a priority of 41. Well, compiling the sources and running it (on ATmega128) shows that everything is working well. Even the task with 41 priority. Examination with a logic analyzer showed, that this task executes as a task with mid Priority such as 3 or 4.
Can anyone explain that behaviour?
Best Regards, Alex
RE: Undefined PriorityPosted by woops_ on July 26, 2008 If you study the source code then you see the code
if( uxPriority >= configMAX_PRIORITIES ) { uxPriority = configMAX_PRIORITIES - 1; } so it is limited.
RE: Undefined PriorityPosted by Alexander Zurkan on July 26, 2008 Thanks for the answer. I think I missed that line in the sources.
Best Regards, Alex
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|