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 Scheduling<br />

MicroC/<strong>OS</strong>-<strong>II</strong> Task <br />

Task Scheduling <strong>OS</strong>_Sched() .<br />

ISR Scheduling <strong>OS</strong>IntExit() .<br />

void <strong>OS</strong>_Sched (void)<br />

{<br />

#if <strong>OS</strong>_CRITICAL_METHOD == 3<br />

<strong>OS</strong>_CPU_SR cpu_sr;<br />

#endif<br />

INT8U y;<br />

}<br />

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

if ((<strong>OS</strong>IntNesting == 0) && (<strong>OS</strong>LockNesting == 0)) {<br />

y = <strong>OS</strong>UnMapTbl[<strong>OS</strong>RdyGrp];<br />

<strong>OS</strong>PrioHighRdy = (INT8U)((y

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

Saved successfully!

Ooh no, something went wrong!