#include <nitro/os.h>
void OS_Sleep( u32 msec );
This function stops the thread for a specified time. Internally an alarm is used to exit this sleep status after the specified time.
Therefore, the check system and alarm system need to be initialized in advance using OS_InitThread(),
as well as OS_InitTick() and OS_InitAlarm().
msec is the time for stopping and the unit is in milliseconds.
msec |
Time in sleep status (milliseconds) |
None
OS_InitThread,
OS_InitTick,
OS_InitAlarm,
OS_SleepThread
03/02/2004 Initial Version