Complete the code to create a task with priority 2.
xTaskCreate(taskFunction, "Task1", 1000, NULL, [1], NULL);
The fifth parameter sets the task priority. Here, priority 2 is correct.
Complete the code to set the priority of an existing task to 3.
vTaskPrioritySet([1], 3);
The first parameter is the handle of the task whose priority you want to change.
Fix the error in setting the task priority to 4 for a task handle named myTaskHandle.
vTaskPrioritySet(myTaskHandle, [1]);The priority must be an integer value, not a string or undefined variable.
Fill both blanks to create a task with priority 5 and stack size 2000.
xTaskCreate(taskFunction, "Task2", [1], NULL, [2], NULL);
The third parameter is stack size, and the fifth is priority.
Fill all three blanks to create a task with name "Logger", priority 3, and stack size 1500.
xTaskCreate([1], [2], [3], NULL, 3, NULL);
The first argument is the task function name, second is the task name string, third is stack size.
