Skip to Content
Hands-On RTOS with Microcontrollers
book

Hands-On RTOS with Microcontrollers

by Brian Amos
May 2020
Intermediate to advanced
496 pages
13h 54m
English
Packt Publishing
Content preview from Hands-On RTOS with Microcontrollers

Starting the scheduler

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RTOS with Microcontrollers - Second Edition

Hands-On RTOS with Microcontrollers - Second Edition

Jim Yuill, Penn Linder

Publisher Resources

ISBN: 9781838826734Supplemental Content