📄 config.h
字号:
;/****************************************Copyright (c)**************************************************
;** 深圳市优龙科技有限公司
;**
;** http://www.ucdragon.com
;**
;**------------------------------------------------------------------------------------------------------
;********************************************************************************************************/
//这一段无需改动
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif
typedef unsigned char U8; /* 无符号8位整型变量 */
typedef signed char S8; /* 有符号8位整型变量 */
typedef unsigned short U16; /* 无符号16位整型变量 */
typedef signed short S16; /* 有符号16位整型变量 */
typedef unsigned int U32; /* 无符号32位整型变量 */
typedef signed int S32; /* 有符号32位整型变量 */
typedef float fp32; /* 单精度浮点数(32位长度) */
typedef double fp64; /* 双精度浮点数(64位长度) */
#define SIZE_1K 0x00000400
#define SIZE_2K 0x00000800
#define SIZE_4K 0x00001000
#define SIZE_8K 0x00002000
#define SIZE_16K 0x00004000
#define SIZE_32K 0x00008000
#define SIZE_64K 0x00010000
#define SIZE_128K 0x00020000
#define SIZE_256K 0x00040000
#define SIZE_512K 0x00080000
#define SIZE_1M 0x00100000
#define SIZE_2M 0x00200000
#define SIZE_4M 0x00400000
#define SIZE_8M 0x00800000
#define SIZE_16M 0x01000000
#define SIZE_32M 0x02000000
#define SIZE_64M 0x04000000
#define SIZE_128M 0x08000000
#define SIZE_256M 0x10000000
#define SIZE_512M 0x20000000
#define SIZE_1G 0x40000000
#define SIZE_2G 0x80000000
#define ENTER_KEY 0x0d
#define BACK_KEY 0x08
#define BEEP_KEY 0x07
#define UP_KEY 0x41
#define DOWN_KEY 0x42
#define RIGHT_KEY 0x43
#define LEFT_KEY 0x44
#define HOME_KEY 0x48
#define END_KEY 0x4b
#define ESC_KEY 0x1b
/********************************/
/* ARM的特殊代码 */
/********************************/
//这一段无需改动
#include "LPC2103.h"
/********************************/
/* 应用程序配置 */
/********************************/
//以下根据需要改动
/********************************/
/* 本例子的配置 */
/********************************/
/* 系统设置, Fosc、Fcclk、Fcco、Fpclk必须定义*/
#define Fosc 10000000 //晶振频率,10MHz~25MHz,应当与实际一至
#define Fcclk (Fosc * 4) //系统频率,必须为Fosc的整数倍(1~32),且<=60MHZ
#define Fcco (Fcclk * 4) //CCO频率,必须为Fcclk的2、4、8、16倍,范围为156MHz~320MHz
#define Fpclk (Fcclk / 4) * 1 //VPB时钟频率,只能为(Fcclk / 4)的1 ~ 4倍
#include "target.h" //这一句不能删除
// LPC21000 misc uart0 definitions
#define UART0_PCB_PINSEL_CFG (INT32U)0x00000005
#define UART0_INT_BIT (INT32U)0x0040
#define LCR_DISABLE_LATCH_ACCESS (INT32U)0x00000000
#define LCR_ENABLE_LATCH_ACCESS (INT32U)0x00000080
#define LCR_DISABLE_BREAK_TRANS (INT32U)0x00000000
#define LCR_ODD_PARITY (INT32U)0x00000000
#define LCR_ENABLE_PARITY (INT32U)0x00000008
#define LCR_1_STOP_BIT (INT32U)0x00000000
#define LCR_CHAR_LENGTH_8 (INT32U)0x00000003
#define LSR_THR_EMPTY (INT32U)0x00000020
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -