Complete the code to delete the current FreeRTOS task.
void TaskFunction(void *pvParameters) {
// Task code here
[1](NULL); // Delete this task
}The function vTaskDelete(NULL) deletes the currently running task.
Complete the code to delete a task using its handle.
TaskHandle_t xHandle = NULL;
// Task creation code here
[1](xHandle); // Delete the task using its handleUse vTaskDelete(xHandle) to delete a task by its handle.
Fix the error in the code to properly delete the task.
void TaskFunction(void *pvParameters) {
// Task code
[1](NULL); // Incorrect deletion
}The correct function to delete a task is vTaskDelete(), not xTaskDelete().
Fill both blanks to create and then delete a task properly.
TaskHandle_t xTaskHandle = NULL; [1](TaskFunction, "Task", 1000, NULL, 1, &xTaskHandle); [2](xTaskHandle);
First, create the task with xTaskCreate(), then delete it with vTaskDelete().
Fill all three blanks to create a task, delete it, and then start the scheduler.
TaskHandle_t xHandle = NULL; [1](TaskFunction, "Task", 512, NULL, 2, &xHandle); [2](xHandle); [3]();
Create the task with xTaskCreate(), delete it with vTaskDelete(), then start the scheduler with vTaskStartScheduler().
