os_roottask.h File Reference

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 Documentation

#define ROOT_TASK_STACK_SIZE   128

Definition at line 4 of file os_roottask.h.


Function Documentation

void OsTaskFinish ( void   ) 

Definition at line 237 of file os_task.c.

00237                        {
00238     OsFinish();
00239     while(1);
00240 }

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 }


Variable Documentation

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.


Generated on Sat Apr 10 23:28:07 2010 for 80X86 MULTI-TASKING OPERATION SYSTEM by  doxygen 1.5.9