Introduction
Task functions are the main code blocks that run in FreeRTOS tasks. They need a specific format so the system can run them properly.
When creating a new task to run code concurrently.
When defining what a task should do when it starts.
When passing a function to FreeRTOS to manage as a task.
When organizing code to run in separate threads on a microcontroller.