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.
Creating Task Profilers and Task Functions
From the course: Introduction to FreeRTOS and Basic Task Management
Creating Task Profilers and Task Functions
- [Instructor] In this lesson, we're going to learn how to create tasks in FreeRTOS, and we're going to use the help of our TODO comment here to guide us. Now, how many do we have? We have eight TODO items in total, meaning we have eight steps to follow. Before we start, let's see what is currently implemented in this project. We see the retargeting code here, which retargets printf, so that we can use printf over UART. In the main function, HAL is initialized, our SystemClock is configured, the GPIO is initialized, and the UART peripheral is also initialized. Okay, so there is no RTOS implementation yet, that is our job. So let's start with TODO item 1, which says we have to include the necessary header files. So we need to include these header files to allow us to access the FreeRTOS task management functions. Over here, we're talking about functions for task creation, scheduling, and other RTOS features. So the first one is the FreeRTOS.h. So over here, we say #include, and then we…
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)
-
-