 | RTX166 Tiny User's Guide |  |
|
|
| os_delay_task| Summary |
#include <rtx166t.h>
int os_delay_task (
unsigned int ticks); /* timer ticks to wait */
| | Description | 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). Note 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 | os_wait | | Example |
#include <rtx166t.h>
void tst_os_delay_task (void) _task_ 3
{
while (1)
{
os_delay_task (100); /* wait for 100 timer ticks */
}
}
|
|
|