Complete the code to set the task priority correctly.
xTaskCreate(TaskFunction, "Task1", 1000, NULL, [1], NULL);
The task priority must be set above the idle priority to ensure it runs.
Complete the code to create a high priority task.
xTaskCreate(TaskFunction, "HighPriorityTask", 1000, NULL, [1], NULL);
High priority tasks use the highest valid priority, which is configMAX_PRIORITIES - 1.
Fix the error in the priority assignment.
vTaskPrioritySet(TaskHandle, [1]);Priority must be within valid range: 0 to configMAX_PRIORITIES - 1.
Fill both blanks to create a medium priority task and set its priority.
xTaskCreate(TaskFunction, "MediumTask", 1000, NULL, [1], &TaskHandle); vTaskPrioritySet(TaskHandle, [2]);
Both creation and priority set use the same valid medium priority.
Fill all three blanks to create a task, set its priority, and delete it properly.
xTaskCreate(TaskFunction, "TempTask", 1000, NULL, [1], &TaskHandle); vTaskPrioritySet(TaskHandle, [2]); vTaskDelete([3]);
Create and set priority with valid value, then delete the task using its handle.
