昵称:烦夫子
类别:界面/平面设计师
年龄:38
现所在地:北京
主页浏览总数:24259
总积分:89
文章数:88
作品数:70
#include "stdio.h"
#include "stdlib.h"
#include "stdarg.h"
#include "string.h"
#include "ctype.h"
#include "math.h"
#include "44b.h"
#include "44blib.h"
#include "option.h"
#include "key.h"
#include "ps2.h"
#include "uart_lib.h"
#include "app.h"
#include "NorFlash.h"
extern int Begain;
/* Main entry */
void Main(void)
{// char ch;
volatile unsigned short * addr = (volatile unsigned short * )0x100000;
SetPLL(52,2,1); // for 8M crystal,60M internal
MemCfgInit();
Port_Init(); //IO initialization
__rt_lib_init();
CacheDisable();
SerialInit(0,MCLK,115200); // Serial port 0 is used as our console
LCD_12864_Init();
About();
UART0_Printf( "除法测试10/4.0=%2.3f\n",(10/4.0)) ;
UART0_Printf( "除法测试10/2.1=%2.3f\n",(10/2.1)) ;
Isr_Init();
if(*((unsigned short *)addr)==65535)//系统第一次运行时设置出厂参数
MyTestNorFlash();
Delay(1000);
Shurucansh();
while(1)
{
while(Begain==0)
{
Dmrec();
//数据接收
Begain=1;
}
while(Begain)
{
Delay(10);
Decode(); //译码
}
}
UART0_Printf( "Program End!\n" ) ;
}