#include <ctl_api.h> void ctl_timeout_wait(CTL_TIME_t timeout);
The ctl_timeout_wait function takes the timeout (not the duration) as a parameter and suspends the calling task until the current time is less than the timeout.
ctl_task_set_priority is provided in every implementation of the CrossWorks tasking library.