define SDA P20#define IOSDA DDR20#define SCL P21#define KEY_L P17 #define KEY_R P00 #define KEY_F P01 #define KEY_B P02 #define L_LED P07#define R_LED P04#define F_LED P05#define B_LED P06#define BUZER P03#define PKT_FLAG P14 // INPUT,#define MISO P10 // INPUT, SPI data in#define MOSI P11 // OUTPUT, SPI data out#define CLK P13 // OUTPUT, SPI clock#define NSS P15 // OUTPUT#define RESET_N P20 // OUTPUT//==========================================================#define Sync_Word_2ndAddr 37#define Sync_Word_1stAddr 36#define SPI_Delay 3const uchar PWM_Table[11]={1,4,7,10,13,16,19,22,25,28,31};const Com_SyncWord_Table[4]={0x55,0x55,0x55,0x55};const Channeal_TAB[9]={3,32,65,10,35,70,18,44,75};///////R_channelֵ///////////////////// 003 ; freq:2402 ;@0X03// 032 ; freq:2428 ;@0X20// 065 ; freq:2456 ;@0X41// 010 ; freq:2406 ;@0X0A// 035 ; freq:2433 ;@0X23// 070 ; freq:2461 ;@0X46// 018 ; freq:2410 ;@0X12// 044 ; freq:2438 ;@0X28// 075 ; freq:2466 ;@0X4Bconst KEY_TAB[16]={0,0x51,0x52,0,0x54,0x55,0x56,0,0x58,0x59,0x5a,0,0,0,0,0};uchar R_channel,channel_count;uchar R_Dlenth,R_DATA1,R_DATA2,R_DATA3;uchar RegL,RegH;uchar R_10mscount,R_tscancount;uchar R_Test;uchar KeyLRcount,KeyFBcount,KeyData;uchar R_LRcount,R_FBcount,R_Nosindelay;
|