28.12.2014 Views

uC/OS-II (Structure) - 경희대학교

uC/OS-II (Structure) - 경희대학교

uC/OS-II (Structure) - 경희대학교

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Kernel <strong>Structure</strong> (Cont’d)<br />

• Task Control Block<br />

#if (<strong>OS</strong>_VERSION >= 251) && (<strong>OS</strong>_FLAG_EN > 0) && (<strong>OS</strong>_MAX_FLAGS > 0)<br />

#if <strong>OS</strong>_TASK_DEL_EN > 0<br />

<strong>OS</strong>_FLAG_NODE *<strong>OS</strong>TCBFlagNode; /* Pointer to event flag node */<br />

#endif<br />

<strong>OS</strong>_FLAGS <strong>OS</strong>TCBFlagsRdy; /* Event flags that made task ready to run */<br />

#endif<br />

INT16U <strong>OS</strong>TCBDly;<br />

/* Nbr ticks to delay task or, timeout waiting for event<br />

INT8U <strong>OS</strong>TCBStat; /* Task status */<br />

INT8U <strong>OS</strong>TCBPrio;<br />

/* Task priority (0 == highest, 63 == lowest)*/<br />

INT8U <strong>OS</strong>TCBX; /* Bit position in group corresponding to task priority (0..7) */<br />

INT8U <strong>OS</strong>TCBY; /* Index into ready table corresponding to task priority */<br />

INT8U <strong>OS</strong>TCBBitX; /*Bit mask to access bit position in ready table */<br />

INT8U <strong>OS</strong>TCBBitY; /*Bit mask to access bit position in ready group */<br />

#if <strong>OS</strong>_TASK_DEL_EN > 0<br />

BOOLEAN <strong>OS</strong>TCBDelReq; /* Indicates whether a task needs to delete */<br />

#endif<br />

} <strong>OS</strong>_TCB;<br />

Embedded System Lab. <strong>II</strong> 14

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

Saved successfully!

Ooh no, something went wrong!