Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Task Management (Cont’d)<br />
• Task / <strong>OS</strong>TaskQuery()<br />
Task <br />
<br />
<br />
<br />
<br />
‣ prio: <br />
‣ Pdata: <br />
void MyTask (void *pdata)<br />
{<br />
<strong>OS</strong>_TCB MyTaskData;<br />
}<br />
pdata = pdata;<br />
for (;;) {<br />
/* User code */<br />
err = <strong>OS</strong>TaskQuery(10, &MyTaskData);<br />
/* Examine error code .. */<br />
/* User code */<br />
}<br />
Embedded System Lab. <strong>II</strong> 53