
2. PMC SYSTEM CALL
B–61863E–1/06
PMC LIBRARY
146
SC/SC3/SC4 NB/NB2 16i/18i/21i 15i–A
f f f f
[Name]
os_sync_tim
[Description]
Keeps the task that issued this function in the waiting state until the
specified time arrives.
This function cannot make other tasks wait for the specified time.
This command does not return 0 as the completion code.
[Format]
ret = os_sync_tim(wakeup_time) ;
unsigned short ret ;
unsigned long wakeup_time ;
[Input]
wakeup_time latency time
[Output]
______
[Returns]
ret Completion code
011AH ; Time-out
[Remarks]
The waiting time is (wakeup_time - current time).
The task is not kept in the waiting state when wakeup_time is less than
current time (when a time that has passed is specified).
Before this function is executed, the current time must be read by the
os_show_tim function.
The maximum value that can be specified as wakeup_time is
7FFFFFFFh (198 days, 20 hours, 11 minutes, nine seconds, and 180
milliseconds).
The timer value to be set in wakeup_time is eight milliseconds per
count.
2.4
KEEPING THE TASK
IN THE WAITING
STATE UNTIL THE
SPECIFIED TIME