Keil Logo


#include <rtx166t.h>

int os_delay_task (
  unsigned int ticks);        /* timer ticks to wait */

The os_delay_task function halts the current task and waits for a time interval. The ticks argument specifies the number of timer ticks to wait for a time-out event (K_TMO).


This function is part of the RTX166 Tiny Real-Time Operating System.
Return Value

When the time-out occurs, the task is put in the READY state. When the task resumes execution, the os_delay_task function returns the TMO_EVENT manifest constant to indicate a time-out has completed.

See Also


#include <rtx166t.h>

void tst_os_delay_task (void) _task_ 3
while (1)
  os_delay_task (100);  /* wait for 100 timer ticks */
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.