30.12.2013 Views

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

T-Kernel Specification (1.B0.02)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.7. TIME MANAGEMENT FUNCTIONS 173<br />

tk sta cyc<br />

Start Cyclic Handler<br />

[C Language Interface]<br />

ER ercd = tk_sta_cyc ( ID cycid ) ;<br />

[Parameters]<br />

ID cycid Cyclic handler ID<br />

[Return Parameters]<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

Normal completion<br />

Invalid ID number (cycid is invalid or cannot be used)<br />

Object does not exist (the cyclic handler designated in cycid does not exist)<br />

[Description]<br />

Activates a cyclic handler, putting it in active state.<br />

If the TA PHS attribute was designated, the cycle time of the cyclic handler is not reset when the cyclic<br />

handler goes to active state. If it was already in active state when this system call was executed, it<br />

continues unchanged in active state.<br />

If the TA PHS attribute was not designated, the cycle time is reset when the cyclic handler goes to active<br />

state. If it was already in active state, it continues in active state but its cycle time is reset. In this<br />

case, the next time the cyclic handler starts is after cyctim has elapsed.<br />

Copyright c○ 2002, 2003 by T-Engine Forum<br />

T-<strong>Kernel</strong> <strong>1.B0.02</strong>

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

Saved successfully!

Ooh no, something went wrong!