Summary
In this chapter, we explored the need for something more than a super-loop, when a system has complex time constraints. RTOS tasks were presented as a solution for such systems, and they were compared to super-loop functions. The task-based architecture was introduced from a conceptual view, including the two primary types of scheduling used in FreeRTOS: round-robin and preemptive. Examples were provided, from a conceptual perspective, to show how a preemptive-scheduler runs tasks with different priorities.
A FreeRTOS program was then presented, which implements the preemptive-scheduling concepts. Three tasks were created, with different priorities, and they were run by FreeRTOS’s preemptive scheduler. Also presented were SystemView’s tools for monitoring FreeRTOS-based systems.
The best way to learn the material in this book is to augment one’s study with hands-on experiments and development. In order to do that, an IDE-project is needed, with...