What is the FreeRTOS equivalent to Arduino's delay()?

Instead of Arduino’s

example.cpp
delay(5); // delay for five milliseconds

use this in FreeRTOS:

example.cpp
vTaskDelay(5 / portTICK_PERIOD_MS);

Check out similar posts by category: Arduino, Electronics, Embedded, FreeRTOS