28.12.2014 Views

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

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

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MicroC/<strong>OS</strong><br />

/<strong>OS</strong>-<strong>II</strong> Porting (Cont’d)<br />

• <strong>OS</strong>_CPU.H<br />

<strong>OS</strong>_ENTER_CRITICAL() <strong>OS</strong>_EXIT_CRITICAL()<br />

‣ MicroC/<strong>OS</strong>-<strong>II</strong> Critical Section <br />

<br />

‣ <strong>OS</strong>_CPU.H <strong>OS</strong>_ENTER_CRITICAL() <strong>OS</strong>_EXIT_CRITICAL() <br />

.<br />

{<br />

}<br />

.<br />

<strong>OS</strong>_ENTER_CRITICAL();<br />

/* MicroC/<strong>OS</strong>-<strong>II</strong> Critical Section Code */<br />

<strong>OS</strong>_EXIT_CRITICAL();<br />

.<br />

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

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

Saved successfully!

Ooh no, something went wrong!