?? lf2407_c.h
字號:
volatile unsigned int *CANMBX4A = (volatile unsigned int *)0x7224;
volatile unsigned int *CANMBX4B = (volatile unsigned int *)0x7225;
volatile unsigned int *CANMBX4C = (volatile unsigned int *)0x7226;
volatile unsigned int *CANMBX4D = (volatile unsigned int *)0x7227;
volatile unsigned int *CANMSGID5L = (volatile unsigned int *)0x7228;
volatile unsigned int *CANMSGID5H = (volatile unsigned int *)0x7229;
volatile unsigned int *CANMSGCTRL5 = (volatile unsigned int *)0x722A;
volatile unsigned int *CANMBX5A = (volatile unsigned int *)0x722C;
volatile unsigned int *CANMBX5B = (volatile unsigned int *)0x722D;
volatile unsigned int *CANMBX5C = (volatile unsigned int *)0x722E;
volatile unsigned int *CANMBX5D = (volatile unsigned int *)0x722F;
//事件管理器A寄存器
volatile unsigned int *GPTCONA = (volatile unsigned int *)0x7400;
volatile unsigned int *T1CNT = (volatile unsigned int *)0x7401;
volatile unsigned int *T1CMP = (volatile unsigned int *)0x7402;
volatile unsigned int *T1PER = (volatile unsigned int *)0x7403;
volatile unsigned int *T1CON = (volatile unsigned int *)0x7404;
volatile unsigned int *T2CNT = (volatile unsigned int *)0x7405;
volatile unsigned int *T2CMP = (volatile unsigned int *)0x7406;
volatile unsigned int *T2PER = (volatile unsigned int *)0x7407;
volatile unsigned int *T2CON = (volatile unsigned int *)0x7408;
volatile unsigned int *COMCONA = (volatile unsigned int *)0x7411;
volatile unsigned int *ACTRA = (volatile unsigned int *)0x7413;
volatile unsigned int *DBTCONA = (volatile unsigned int *)0x7415;
volatile unsigned int *CMPR1 = (volatile unsigned int *)0x7417;
volatile unsigned int *CMPR2 = (volatile unsigned int *)0x7418;
volatile unsigned int *CMPR3 = (volatile unsigned int *)0x7419;
volatile unsigned int *CAPCONA = (volatile unsigned int *)0x7420;
volatile unsigned int *CAPFIFOA = (volatile unsigned int *)0x7422;
volatile unsigned int *CAP1FIFO = (volatile unsigned int *)0x7423;
volatile unsigned int *CAP2FIFO = (volatile unsigned int *)0x7424;
volatile unsigned int *CAP3FIFO = (volatile unsigned int *)0x7425;
volatile unsigned int *CAP1FBOT = (volatile unsigned int *)0x7427;
volatile unsigned int *CAP2FBOT = (volatile unsigned int *)0x7428;
volatile unsigned int *CAP3FBOT = (volatile unsigned int *)0x7429;
volatile unsigned int *EVAIMRA = (volatile unsigned int *)0x742C;
volatile unsigned int *EVAIMRB = (volatile unsigned int *)0x742D;
volatile unsigned int *EVAIMRC = (volatile unsigned int *)0x742E;
volatile unsigned int *EVAIFRA = (volatile unsigned int *)0x742F;
volatile unsigned int *EVAIFRB = (volatile unsigned int *)0x7430;
volatile unsigned int *EVAIFRC = (volatile unsigned int *)0x7431;
//時間管理器B寄存器
volatile unsigned int *GPTCONB = (volatile unsigned int *)0x7500;
volatile unsigned int *T3CNT = (volatile unsigned int *)0x7501;
volatile unsigned int *T3CMP = (volatile unsigned int *)0x7502;
volatile unsigned int *T3PER = (volatile unsigned int *)0x7503;
volatile unsigned int *T3CON = (volatile unsigned int *)0x7504;
volatile unsigned int *T4CNT = (volatile unsigned int *)0x7505;
volatile unsigned int *T4CMP = (volatile unsigned int *)0x7506;
volatile unsigned int *T4PER = (volatile unsigned int *)0x7507;
volatile unsigned int *T4CON = (volatile unsigned int *)0x7508;
volatile unsigned int *COMCONB = (volatile unsigned int *)0x7511;
volatile unsigned int *ACTRB = (volatile unsigned int *)0x7513;
volatile unsigned int *DBTCONB = (volatile unsigned int *)0x7515;
volatile unsigned int *CMPR4 = (volatile unsigned int *)0x7517;
volatile unsigned int *CMPR5 = (volatile unsigned int *)0x7518;
volatile unsigned int *CMPR6 = (volatile unsigned int *)0x7519;
volatile unsigned int *CAPCONB = (volatile unsigned int *)0x7520;
volatile unsigned int *CAPFIFOB = (volatile unsigned int *)0x7522;
volatile unsigned int *CAP4FIFO = (volatile unsigned int *)0x7523;
volatile unsigned int *CAP5FIFO = (volatile unsigned int *)0x7524;
volatile unsigned int *CAP6FIFO = (volatile unsigned int *)0x7525;
volatile unsigned int *CAP4FBOT = (volatile unsigned int *)0x7527;
volatile unsigned int *CAP5FBOT = (volatile unsigned int *)0x7528;
volatile unsigned int *CAP6FBOT = (volatile unsigned int *)0x7529;
volatile unsigned int *EVBIMRA = (volatile unsigned int *)0x752C;
volatile unsigned int *EVBIMRB = (volatile unsigned int *)0x752D;
volatile unsigned int *EVBIMRC = (volatile unsigned int *)0x752E;
volatile unsigned int *EVBIFRA = (volatile unsigned int *)0x752F;
volatile unsigned int *EVBIFRB = (volatile unsigned int *)0x7530;
volatile unsigned int *EVBIFRC = (volatile unsigned int *)0x7531;
/*常量的定義~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
//數(shù)據(jù)空間
#define B2_SADDR 0x0060
#define B2_EADDR 0x007F
#define B0_SADDR 0x0200
#define B0_EADDR 0x02FF
#define B1_SADDR 0x0300
#define B1_EADDR 0x03FF
#define SARAM 0x0800
#define EXTDATA 0x8000
//經(jīng)常用到的數(shù)據(jù)頁~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define DP_B2 0
#define DP_B01 4
#define DP_B02 5
#define DP_B11 6
#define DP_B12 7
#define DP_SARAM1 16
#define DP_PF1 224
#define DP_PF2 225
#define DP_PF3 226
#define DP_PF4 227
#define DP_PF5 228
#define DP_EVA 232
#define DP_EVB 234
#define DP_EXT1 256
//位測試指令的位代碼(BIT)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define BIT15 0
#define BIT14 1
#define BIT13 2
#define BIT12 3
#define BIT11 4
#define BIT10 5
#define BIT9 6
#define BIT8 7
#define BIT7 8
#define BIT6 9
#define BIT5 10
#define BIT4 11
#define BIT3 12
#define BIT2 13
#define BIT1 14
#define BIT0 15
//用SBIT0和SBIT1宏屏蔽位~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define B15_MSK 0x8000
#define B14_MSK 0x4000
#define B13_MSK 0x2000
#define B12_MSK 0x1000
#define B11_MSK 0x0800
#define B10_MSK 0x0400
#define B9_MSK 0x0200
#define B8_MSK 0x0100
#define B7_MSK 0x0080
#define B6_MSK 0x0040
#define B5_MSK 0x0020
#define B4_MSK 0x0010
#define B3_MSK 0x0008
#define B2_MSK 0x0004
#define B1_MSK 0x0002
#define B0_MSK 0x0001
//看門狗定時器復位字符串~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#define wd_rst_1 0x0055
#define wd_rst_2 0x00AA
/*以下為用戶自定義的變量~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -