May 2020
Intermediate to advanced
496 pages
13h 54m
English
With all of the options we have for creating tasks, you might be thinking that starting the scheduler would be a complex affair. You'll be pleasantly surprised at how easy it is:
//starts the FreeRTOS scheduler - doesn't//return if successfulvTaskStartScheduler();
Yep, just one line of code and no input parameters!
The v in front of the function name indicates it returns void. In reality, this function never returns – unless there is a problem. It is the point where vTaskStartScheduler() is called that the program transitions from a traditional single super loop to a multi-tasking RTOS.
After the scheduler is started, we'll need to think about and understand the different states the tasks are in so we can debug and ...