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

Instead of Arduino’s

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

use this in FreeRTOS:

freertos_vtaskdelay_example.cpp
vTaskDelay(5 / portTICK_PERIOD_MS);

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