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

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…

Contents