...
Files
os.h/os_time.c
Prototype
Code Block |
---|
void OSTimeDly (OS_TICK dly,
OS_OPT opt,
OS_ERR *p_err) |
Arguments
dly
is the desired delay expressed in number of clock ticks. Depending on the value of the opt
field, delays can be relative or absolute.
...
Notes/Warnings
None
Example Usage
Code Block | ||
---|---|---|
| ||
void TaskX (void *p_arg)
{
OS_ERR err;
while (DEF_ON) {
:
:
OSTimeDly(10,
OS_OPT_TIME_PERIODIC,
&err);
/* Check "err" */
:
:
}
} |