Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
astrotycoon committed Feb 23, 2012
1 parent b7134e6 commit f4494da
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions COS
Submodule COS added at 891de4
1 change: 1 addition & 0 deletions cos472
Submodule cos472 added at f1ffa7
1 change: 1 addition & 0 deletions object_oriented_c
Submodule object_oriented_c added at 102cb1
4 changes: 2 additions & 2 deletions uCOS/SOFTWARE/uCOS-II/SOURCE/OS_CORE.C
Expand Up @@ -179,7 +179,7 @@ void OSIntExit (void)
if (OSRunning == TRUE) { if (OSRunning == TRUE) {
OS_ENTER_CRITICAL(); OS_ENTER_CRITICAL();
if (OSIntNesting > 0) { /* Prevent OSIntNesting from wrapping */ if (OSIntNesting > 0) { /* Prevent OSIntNesting from wrapping */
OSIntNesting--; OSIntNesting--; /* 中段嵌套层计数器减1 */
} }
if ((OSIntNesting == 0) && (OSLockNesting == 0)) { /* Reschedule only if all ISRs complete ... */ if ((OSIntNesting == 0) && (OSLockNesting == 0)) { /* Reschedule only if all ISRs complete ... */
OSIntExitY = OSUnMapTbl[OSRdyGrp]; /* ... and not locked. */ OSIntExitY = OSUnMapTbl[OSRdyGrp]; /* ... and not locked. */
Expand Down Expand Up @@ -303,7 +303,7 @@ void OSStart (void)
OSPrioCur = OSPrioHighRdy; OSPrioCur = OSPrioHighRdy;
OSTCBHighRdy = OSTCBPrioTbl[OSPrioHighRdy]; /* Point to highest priority task ready to run */ OSTCBHighRdy = OSTCBPrioTbl[OSPrioHighRdy]; /* Point to highest priority task ready to run */
OSTCBCur = OSTCBHighRdy; OSTCBCur = OSTCBHighRdy;
OSStartHighRdy(); /* Execute target specific code to start task */ OSStartHighRdy(); /* Execute target specific code to start task *//* 运行最高优先级别的就绪任务 */
} }
} }
/*$PAGE*/ /*$PAGE*/
Expand Down

0 comments on commit f4494da

Please sign in to comment.