firmware
IEM Firmware Documentation
Loading...
Searching...
No Matches
xTaskCatchUpTicks
Collaboration diagram for xTaskCatchUpTicks:

task.h

long BaseType_t
Definition portmacro.h:59
uint16_t TickType_t
Definition portmacro.h:63
BaseType_t xTaskCatchUpTicks(TickType_t xTicksToCatchUp)
Definition tasks.c:4546

This function corrects the tick count value after the application code has held interrupts disabled for an extended period resulting in tick interrupts having been missed.

This function is similar to vTaskStepTick(), however, unlike vTaskStepTick(), xTaskCatchUpTicks() may move the tick count forward past a time at which a task should be removed from the blocked state. That means tasks may have to be removed from the blocked state as the tick count is moved.

Parameters
xTicksToCatchUpThe number of tick interrupts that have been missed due to interrupts being disabled. Its value is not computed automatically, so must be computed by the application writer.
Returns
pdTRUE if moving the tick count forward resulted in a task leaving the blocked state and a context switch being performed. Otherwise pdFALSE.