int rt_wait_for_start_time(void)Blocks the calling task until the first (start_time) or the next (next_period) periodic activation. The calling task must be periodic; returns RK_SUCCESS on success and RK_ERROR on failure (when invoked by a non periodic task).
int rt_wait_for_next_period(void)