Skip to content

2. API: Main Controller

Kong Wai Weng edited this page Aug 9, 2017 · 7 revisions

These are the common function for the rero main controller.

Function: vTaskDelay

/*******************************************************************************
 * FUNCTION: vTaskDelay
 *
 * PARAMETERS:
 * ~ xTicksToDelay - The amount of time in tick periods to delay.
 *
 * RETURN:
 * ~ void
 *
 * DESCRIPTIONS:
 * Pause for the given period.
 *
 *******************************************************************************/
void vTaskDelay(const TickType_t xTicksToDelay);

Example:

vTaskDelay(500 / portTICK_RATE_MS);

Clone this wiki locally