28.03.2015 Views

Task Management and Lab 5

Task Management and Lab 5

Task Management and Lab 5

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

OS<strong>Task</strong>CreateExt( ( ): Example<br />

OS<strong>Task</strong>CreateExt(<strong>Task</strong>Start, , (void *)0, ptos, , TASK_START_PRIO,<br />

TASK_START_ID, pbos, , size, (void *)0,<br />

OS_TASK_OPT_STK_CHK | OS_TASK_OPT_STK_CLR);<br />

Note for lab 5:<br />

OS<strong>Task</strong>CreateExt(STKWrit<strong>Task</strong>, , (void *)0, (OS_STK *)&STKWrit<strong>Task</strong>Stk[0],<br />

5, 5, (OS_STK *)&STKWrit<strong>Task</strong>Stk[100-1], 1], 100, (void *)0,<br />

OS_TASK_OPT_STK_CHK | OS_TASK_OPT_STK_CLR);

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

Saved successfully!

Ooh no, something went wrong!