May 2020
Intermediate to advanced
496 pages
13h 54m
English
Before we can do anything with the RTOS, we need to make sure that our hardware is configured properly. This will typically include carrying out activities such as ensuring GPIO lines are in their proper states, configuring external RAM, configuring critical peripherals and external circuitry, performing built-in tests, and so on. In all of our examples, MCU hardware initialization can be performed by calling HWInit(), which performs all of the basic hardware initialization required:
int main(void){ HWInit();
In this chapter, we'll be developing an application that blinks a few LED lights. Let's define the behavior we'll be programming and take a look at what our individual task functions look like.