If one wanted to restart a task by deleting it with vTaskDelete() followed by xTaskCreate(), is there a way to ensure the idle task gets run to clean up between the calls?
In this particular situation, I have a task that initializes a handful of variables at startup which control which of two devices the driver talks to. The user can flip a switch to change which device is used. The cleanest method at this particular time is to have the main control task stop and restart the driver task. I just need (I think) to make sure the idle tasks gets run to clean up the TCBs and such.