In order to get an RTOS application up and running, a few things need to happen:
- The MCU hardware needs to be initialized.
- Task functions need to be defined.
- RTOS tasks need to be created and mapped to the functions that were defined in step 2.
- The RTOS scheduler must be started.
It is possible to create additional tasks after starting the scheduler. If you are unsure of what a task is, or why you would want to use one, please review Chapter 2, Understanding RTOS Tasks.
Let's break down each of these steps.