//PMC153
System_Clock	EQU	8000000	//	Used at UART, PS2, ...
Program_Mode	EQU	0			//

#if	defined(ADCC)
	#if defined(ADCR)
		ADCRH	EQU		ADCR
		ADCRL	EQU		0
	#else
		ADCR	EQU		ADCRH
	#endif
#endif

//------------------------灯预定义-------------------------
#define LIGHTNAME_LED0			0x00	//LED0--默认LED名
#define LIGHTNAME_LED1			0x01	//LED1
#define LIGHTNAME_LED2			0x02	//LED2
#define LIGHTNAME_LED3			0x03	//LED3
#define LIGHTNAME_LED4			0x04	//LED3
//-----------------------------
//时钟节拍
#define KEYSR_FRECLK	250//4MS-250HZ
#define KEYSR_4MS		1
#define KEYSR_12MS		3
#define KEYSR_20MS		5	
#define KEYSR_40MS		10
#define KEYSR_100MS		25
#define KEYSR_200MS		50
#define KEYSR_400MS		100
#define KEYSR_500MS		125
#define KEYSR_540MS		135
#define KEYSR_600MS		150
#define KEYSR_960MS		240
#define KEYSR_1S		250

#define WIRLESS_TIMES	3//发送次数
#define	RW1600_WR_REG	0x20
//------------------------全局变量-------------------------
extern byte	DriverID0;
extern byte	DriverID1;
extern byte	DriverID2;
extern byte	DriverID3;
extern byte	LightID;
extern byte	KeyMessage;	
extern	byte	rf_Mode;
extern bit	KeyBit;
extern byte RegAddr;
extern byte RegData;
extern byte SPIDDR;
extern byte RegData;