Priority Each task is assigned a priority from 0 to (configMAX_PRIORITIES – 1 ), (configMAX_PRIORITIES is defined in FreeRTOSConfig.h). Low priority numbers denote low priority tasks. The idle task has priority zero (tskIDLE_PRIORITY). The task placed into the Running state by the scheduler is always the highest priority task that is able to run – higher priority tasks […]
Category: Tasks
Co-routines
Co-routines are rarely used these days and there are no plans to develop them further in FreeRTOS
.Tasks general
Resources https://www.freertos.org/taskandcr.html Tasks A RTOS application can be structured as a set of independent tasks Each task executes within its own context with no coincidental dependency on other tasks within the system or the RTOS scheduler. Only one task within the application can be executing at any point in time and the real time RTOS […]
Creating tasks
TaskScheduler vTaskStartScheduler(); //<<<This FreeRTOS call is not required as the scheduler is already started before app_main() call Create New xTask Tasks should never return (i.e. be a continuous loop). xTaskCreate( [pointer to the function which will execute when the task is scheduled to run], [descriptive name for the the task, up to 16 chars, mainly […]