Go to the source code of this file.
Functions | |
| void | OsInit (void) |
| void | OsCoreInit (void) |
| void | OsYield (void) |
| void | OsStart (void) |
| void | OsFinish (void) |
Variables | |
| const U8 | OsUnkown [] |
| U32 | OsTaskSwitch |
| U32 | OsTaskCurrent |
| U32 | OsTaskNext |
| U32 | OsTaskSwHook |
| U32 | OsIntNesting |
| U32 | OsRunning |
| U8 | OsHasIntNesting |
| void OsCoreInit | ( | void | ) |
Definition at line 29 of file os_core.c.
00029 { 00030 OsIntNesting=0; 00031 OsTaskSwitch=0; 00032 OsRunning=0; 00033 OsHasIntNesting=0; 00034 }
| void OsFinish | ( | void | ) |
Definition at line 47 of file os_core.c.
00047 { 00048 OS_TASKENTRY *pOsTask; 00049 #if(OS_CRITICAL_METHOD==3) 00050 U32 CpuEflags; 00051 #endif 00052 00053 OsEnterCritical(); 00054 pOsTask=(OS_TASKENTRY *)OsTaskCurrent; 00055 OsTaskFreeTaskPut(pOsTask); 00056 OsTaskSwitchOut(); 00057 OsExitCritical(); 00058 }
| void OsInit | ( | void | ) |
Definition at line 20 of file os_core.c.
00020 { 00021 OsCoreInit(); 00022 OsTaskInit(); 00023 OsSchedulerInit(); 00024 OsEventInit(); 00025 OsResourceInit(); 00026 OsTimeInit(); 00027 }
| void OsStart | ( | void | ) |
Definition at line 36 of file os_core.c.
00036 { 00037 if(OsRunning==false) 00038 if(OsSchedulerFindRootTask()==true) 00039 OsRootTaskStart(); 00040 while(1); 00041 }
| void OsYield | ( | void | ) |
1.5.9