main/main.c File Reference

Go to the source code of this file.

Functions

void Main (void)


Function Documentation

void Main ( void   ) 

Definition at line 12 of file main.c.

00012                {  // use Main, no use main
00013     //GPFDAT = 0x10;
00014     F_InterruptInitial();
00015     F_IicInit();
00016     F_Uart0Initial();
00017     F_ShellInitial();
00018     F_TimerInitial();
00019     F_XmodemInit();
00020     F_VgaPlay();
00021 
00022     F_TimerTimerSet(1,1000);
00023     ClearPending(BIT_TIMER1);
00024     F_InterruptIrqEnable(BIT_TIMER1);
00025     ClearSubPending(BIT_SUB_RXD0|BIT_SUB_TXD0|BIT_SUB_ERR0);
00026     ClearPending(BIT_UART0);
00027     F_InterruptSubIrqEnable(BIT_SUB_TXD0|BIT_SUB_RXD0);
00028     F_InterruptIrqEnable(BIT_UART0);
00029     #if(OS_RUN_ENABLE==0)
00030         OsInit();                   // some parameters of OS need initial
00031         EnableInt();
00032         while(1){
00033             F_Uart0Svc();
00034             F_ShellSvc();
00035             F_XmodemSvc();
00036         }
00037     #else
00038         OsInit();
00039         OsTaskCreat(F_ShellTask,(OS_STK*)&ShellTaskStack[SHELL_TASK_STACK_SIZE-1],0,0);
00040         OsStart();
00041     #endif
00042 }


Generated on Tue Sep 2 08:45:41 2008 for A Simple operation System using S3C2410 by  doxygen 1.5.6