Complete the code to delay the task for 100 ticks.
vTaskDelay([1]);The function vTaskDelay() pauses the task for the specified number of ticks. Here, 100 ticks is the correct delay.
Complete the code to create a periodic task that delays for 200 ticks.
for (;;) { // Task code here vTaskDelay([1]); }
The task delays for 200 ticks each cycle to run periodically every 200 ticks.
Fix the error in the code to correctly delay the task for 500 ticks.
vTaskDelay([1]); // Delay for 500 ticks
The correct delay is 500 ticks, so the argument must be 500.
Fill both blanks to create a periodic task that delays for 100 ticks and prints "Tick" each cycle.
for (;;) { printf([1]); vTaskDelay([2]); }
The task prints "Tick" and then delays for 100 ticks to run periodically.
Fill all three blanks to create a periodic task that prints the count, delays for 50 ticks, and increments the count.
int count = 0; for (;;) { printf([1], [2]); vTaskDelay([3]); count++; }
The task prints the current count, delays for 50 ticks, then increments the count for the next cycle.