Complete the code to set a task state to Ready.
eTaskState state = [1];The eReady state means the task is ready to run but not currently running.
Complete the code to check if a task is currently Running.
if (eTaskGetState(taskHandle) == [1]) { // Task is running }
The eRunning state means the task is currently executing on the CPU.
Fix the error in the code to correctly set a task to Blocked state.
vTaskDelay([1]); // Delay causes task to enter Blocked stateUsing a positive delay value like 100 ticks causes the task to enter Blocked state for that time.
Fill both blanks to create a task and then suspend it.
xTaskCreate(taskFunction, "Task", 1000, NULL, 1, &taskHandle); vTask[1](taskHandle); // Suspend the task // Later vTask[2](taskHandle); // Resume the task
vTaskSuspend() pauses the task, and vTaskResume() restarts it.
Fill all three blanks to create a dictionary of task states for given tasks.
eTaskState states[] = {
[1],
[2],
[3]
};This array holds three task states: Suspended, Running, and Blocked.
