BOOTLOADER
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
main.c
Go to the documentation of this file.
1 /***********************************
2 * Function: c code enter function
3 *
4 * File: main.c
5 * Author: Book Chen
6 * Date: 2008.07.18
7 ************************************
8 */
9 #include "includes.h"
10 
11 void Main(void){
12  F_GpioInit();
13  F_InterruptInit();
14  F_IicInit();
15  F_Dma0Init();
16  F_Dma1Init();
17  F_Dma2Init();
18  F_Dma3Init();
19  F_Uart0Init();
20  F_ShellInit();
21  F_XmodemInit();
22  F_Dm9000Init();
23  F_TftpInit();
24 
25  F_TimerTimerSet(1,1000);
28  EnableInt();
29  while(1){
30  F_ShellSvc();
31  F_XmodemSvc();
32  F_TftpSvc();
33  F_Uart0Svc();
34  F_Dm9000Svc();
35  }
36 }
37