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.

Event Control Block (Cont’d)<br />

• Event Control Block <strong>Structure</strong><br />

typedef struct {<br />

INT8U <strong>OS</strong>EventType; /* Event type */<br />

INT8U <strong>OS</strong>EventGrp; /* Group for wait list */<br />

INT16U <strong>OS</strong>EventCnt; /* Count (when event is a semaphore) */<br />

void *<strong>OS</strong>EventPtr; /* Ptr to message or queue structure */<br />

INT8U <strong>OS</strong>EventTbl[<strong>OS</strong>_EVENT_TBL_SIZE]; /* Wait list for event to occur */<br />

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

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

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

Saved successfully!

Ooh no, something went wrong!