Complete the code to create a FreeRTOS task that runs the function TaskFunction.
xTaskCreate([1], "Task1", 1000, NULL, 1, NULL);
The xTaskCreate function needs the task function name as its first argument to create a task.
Complete the code to start the FreeRTOS scheduler after creating tasks.
[1]();The vTaskStartScheduler function starts the FreeRTOS scheduler, which begins running tasks.
Fix the error in the task function prototype to match FreeRTOS requirements.
void [1](void *pvParameters) { /* task code */ }FreeRTOS task functions must have the prototype void TaskName(void *pvParameters).
Fill both blanks to create a task that runs Task1Function with priority 2.
xTaskCreate([1], "Task1", 1000, NULL, [2], NULL);
The first blank is the task function name. The second blank is the priority number, here 2.
Fill both blanks to create a dictionary of task names and their priorities for tasks with priority greater than 1.
task_priorities = { [2]: [1] for [3] in tasks if tasks[[3]] > 1}This is a dictionary comprehension. { starts it, task is the key, and tasks[task] is the value.