06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pSOS+ <strong>System</strong> <strong>Calls</strong> tm_wkwhen<br />

Error Codes<br />

Notes<br />

See Also<br />

Hex Mnemonic Description<br />

0x47 ERR_NOTIME <strong>System</strong> time and date not yet set.<br />

0x48 ERR_ILLDATE Date input out of range.<br />

0x49 ERR_ILLTIME Time input out of range.<br />

0x4A ERR_ILLTICKS Ticks input out of range.<br />

0x4E ERR_TOOLATE Too late: input date and time already<br />

past.<br />

1. A tm_set() call (which changes the date and time) directly affects the wakeup<br />

established by tm_wkwhen(). If tm_set() advances the time past a scheduled<br />

wakeup, it triggers the wakeup immediately. If necessary, the application can<br />

detect this situation by checking the time when the task awakens and<br />

comparing that time to the expected time.<br />

2. A task can be suspended while it waits for wakeup. In this case, the wait<br />

continues: if not cancelled, suspension continues after wakeup.<br />

3. A task can be deleted while it waits for wakeup.<br />

Multiprocessor Considerations<br />

None. This call affects only the calling task.<br />

Callable From<br />

■ Task<br />

■ ISR<br />

tm_tick, tm_wkafter<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 1-183<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!