|
【文件名】:061213@52RD_理论教材《嵌入式系统开发与应用教程》部分程序代码(1).doc
【格 式】:doc
【大 小】:2756K
【简 介】:
#define DebugOut Uart_Printf
#define min(x1,x2) ((x1<x2)? x1:x2)
#define max(x1,x2) ((x1>x2)? x1:x2)
#define ONESEC0 (62500) //16us resolution, max 1.04 sec
#define ONESEC1 (31250) //32us resolution, max 2.09 sec
#define ONESEC2 (15625) //64us resolution, max 4.19 sec
#define ONESEC3 (7812) //128us resolution, max 8.38 sec
#define ONESEC4 (MCLK/128/(0xff+1)) //@60Mhz, 128*4us resolution, max 32.53 sec
#define NULL 0
#define EnterPWDN(clkcon) ((void (*)(int))0xe0)(clkcon)
#define DOWNLOAD_ADDRESS _RAM_STARTADDRESS
/* 8led control register address */
#define LED8ADDR (*(volatile unsigned char *)(0x2140000))
#define LCD 0xFF
#define UART 0xFE
【目 录】:
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|