Go to the source code of this file.
Defines | |
| #define | ROOT_TASK_STACK_SIZE 128 |
Functions | |
| void | RootTask (void) |
| void | OsTaskFinish (void) |
Variables | |
| OS_STACK | RootTaskStack [ROOT_TASK_STACK_SIZE] |
| U8 | RootTaskName [] |
| #define ROOT_TASK_STACK_SIZE 128 |
Definition at line 4 of file os_roottask.h.
| void OsTaskFinish | ( | void | ) |
| void RootTask | ( | void | ) |
Definition at line 28 of file os_roottask.c.
00028 { 00029 RootTaskInit(); 00030 OsTaskCreat(ShellTask,(OS_STACK*)&ShellTaskStack[SHELL_TASK_STACK_SIZE-1],&ShellTaskName,0); 00031 while(1){ 00032 if(KeyboardKeyBufferCheck()!=BUFFER_EMPTY){ 00033 OsEventUp(&KeyboardCtrl.KeyboardEvent); 00034 } 00035 if(Uart1RxBufferCheck()!=BUFFER_EMPTY){ 00036 OsEventUp(&Uart1Ctrl.Uart1Event); 00037 } 00038 if(Uart2Ctrl.HasData==true){ 00039 //GuiStringPrint("\nCOM2 EVENT UP"); 00040 OsEventUp(&Uart2Ctrl.Uart2Event); 00041 } 00042 if((RtcCtrl.HasUpdate==true)||(RtcCtrl.HasPeriodic==true)){ 00043 //GuiStringPrint("\nRTC EVENT UP"); 00044 OsEventUp(&RtcCtrl.RtcEvent); 00045 } 00046 if(OsHasIntNesting==OS_TRUE){ 00047 OsHasIntNesting=OS_FALSE; 00048 //GuiPrintString("\nsee nesting interrupt."); 00049 } 00050 OsYield(); 00051 } 00052 }
Definition at line 12 of file os_roottask.c.
| OS_STACK RootTaskStack[ROOT_TASK_STACK_SIZE] |
Definition at line 13 of file os_roottask.c.
1.5.9