"Use Task Delay" option for each task

in MPLAB I am using the built-in RTOS configurator and for each task there is an option “Use Task Delay” (see attached screenshot). I could not find anything online that describe what it does (most likely didn’t search properly).

What does it do?

I initially thought it was to enable the use of vTaskDelay, but I have been using vTaskDelay all along without that option being ticked for any task. So it must be something else.

Could you please point me to whichever page is relevant?

Thank you :slight_smile:


I think this is an MPLAB specific thing. It looks like their framework creates a task which calls your function within an infinite loop, and the Use Task Delay will insert a vTaskDelay in the loop. I assume this is incase your function doesn’t itself block/wait. See https://ww1.microchip.com/downloads/en/DeviceDoc/90003169A.pdf

Thank you @maboytim :slight_smile: