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

Create successful ePaper yourself

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

72 CHAPTER 4. T-KERNEL/OS FUNCTIONS<br />

tk ena tex<br />

tk dis tex<br />

Enable Task Exception<br />

Disable Task Exception<br />

[C Language Interface]<br />

ER ercd = tk_ena_tex ( ID tskid, UINT texptn ) ;<br />

ER ercd = tk_dis_tex ( ID tskid, UINT texptn ) ;<br />

[Parameters]<br />

ID tskid Task ID<br />

UINT texmask Task exception pattern<br />

[Return Parameters]<br />

ER ercd Error code<br />

[Error Codes]<br />

E OK<br />

E ID<br />

E NOEXS<br />

E PAR<br />

Normal completion<br />

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

Object does not exist (the task designated in tskid does not exist or no task exception<br />

handler is defined)<br />

Parameter error (texptn is invalid or cannot be used)<br />

[Description]<br />

Enables or disables task exceptions for the task designated in tskid.<br />

The parameter texptn is a logical OR bit array representing task exception codes in the form 1

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

Saved successfully!

Ooh no, something went wrong!