From the course: Introduction to FreeRTOS and Basic Task Management
Unlock the full course today
Join today to access over 25,200 courses taught by industry experts.
The task priority functions
From the course: Introduction to FreeRTOS and Basic Task Management
The task priority functions
- [Instructor] Let's discuss how to manage task priorities dynamically using the key functions provided to us by FreeRTOS. Let's start with vTaskPrioritySet. This function is used to modify the priority of an existing task dynamically. This function has two parameters. The first parameter is the xTask, and this is the handle of the task whose priority we want to modify. The second parameter is the uxNewPriority, and this is the new priority we want to assign to the task. Next, we have the function for getting the task priority. This is the uxTaskPriorityGet function. This function takes a single parameter. This parameter is the xTask, and it is the handle of the task whose priority we want to access. The return value of this function is the priority of the task.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
The task creation and deletion functions1m 26s
-
(Locked)
Creating Task Profilers and Task Functions4m 38s
-
(Locked)
Creating tasks in FreeRTOS5m 16s
-
(Locked)
Controlling hardware from different tasks3m 56s
-
(Locked)
Passing parameters to tasks5m 56s
-
(Locked)
The task priority functions54s
-
(Locked)
Understanding preemption1m 54s
-
(Locked)
Experimenting with different task priorities4m 24s
-
(Locked)
Changing task priority at runtime3m 59s
-
(Locked)
Reading task priority3m 29s
-
(Locked)
The task suspension and resumption functions1m 1s
-
(Locked)
Suspending a task4m 18s
-
(Locked)
Resuming a suspended task6m 29s
-
(Locked)
Deleting a task in FreeRTOS4m 50s
-
(Locked)
-
-