📄 2407c.h
字号:
volatile unsigned int *EVAIFRA = (volatile unsigned int *)0x742F; /* Group A Interrupt Flag Register*/
volatile unsigned int *EVAIFRB = (volatile unsigned int *)0x7430; /* Group B Interrupt Flag Register*/
volatile unsigned int *EVAIFRC = (volatile unsigned int *)0x7431; /* Group C Interrupt Flag Register*/
/* Event Manager B (EVB) registers*/
volatile unsigned int *GPTCONB = (volatile unsigned int *)0x7500; /* GP Timer control register B */
volatile unsigned int *T3CNT = (volatile unsigned int *)0x7501; /* GP Timer 3 counter register */
volatile unsigned int *T3CMPR = (volatile unsigned int *)0x7502; /* GP Timer 3 compare register */
volatile unsigned int *T3PR = (volatile unsigned int *)0x7503; /* GP Timer 3 period register */
volatile unsigned int *T3CON = (volatile unsigned int *)0x7504; /* GP Timer 3 control register*/
volatile unsigned int *T4CNT = (volatile unsigned int *)0x7505; /* GP Timer 4 counter register */
volatile unsigned int *T4CMPR = (volatile unsigned int *)0x7506; /* GP Timer 4 compare register*/
volatile unsigned int *T4PR = (volatile unsigned int *)0x7507; /* GP Timer 4 period register*/
volatile unsigned int *T4CON = (volatile unsigned int *)0x7508; /* GP Timer 4 control register*/
volatile unsigned int *COMCONB = (volatile unsigned int *)0x7511; /* Compare control register B */
volatile unsigned int *ACTRB = (volatile unsigned int *)0x7513; /* Full compare Action control register B*/
volatile unsigned int *DBTCONB = (volatile unsigned int *)0x7515; /* Dead朾and timer control register B*/
volatile unsigned int *CMPR4 = (volatile unsigned int *)0x7517; /* Full compare unit compare register4*/
volatile unsigned int *CMPR5 = (volatile unsigned int *)0x7518; /* Full compare unit compare register5*/
volatile unsigned int *CMPR6 = (volatile unsigned int *)0x7519; /* Full compare unit compare register6*/
volatile unsigned int *CAPCONB = (volatile unsigned int *)0x7520; /* Capture control register B*/
volatile unsigned int *CAPFIFOB = (volatile unsigned int *)0x7522; /* Capture FIFO status register B */
volatile unsigned int *CAP4FIFO = (volatile unsigned int *)0x7523; /* Capture Channel 4 FIFO Top*/
volatile unsigned int *CAP5FIFO = (volatile unsigned int *)0x7524; /* Capture Channel 5 FIFO Top*/
volatile unsigned int *CAP6FIFO = (volatile unsigned int *)0x7525; /* Capture Channel 6 FIFO Top */
volatile unsigned int *CAP4FBOT = (volatile unsigned int *)0x7527; /* Bottom reg. of capture FIFO stack 4 */
volatile unsigned int *CAP5FBOT = (volatile unsigned int *)0x7527; /* Bottom reg. of capture FIFO stack 5*/
volatile unsigned int *CAP6FBOT = (volatile unsigned int *)0x7527; /* Bottom reg. of capture FIFO stack 6*/
volatile unsigned int *EVBIMRA = (volatile unsigned int *)0x752C; /* Group A Interrupt Mask Register */
volatile unsigned int *EVBIMRB = (volatile unsigned int *)0x752D; /* Group B Interrupt Mask Register */
volatile unsigned int *EVBIMRC = (volatile unsigned int *)0x752E; /* Group C Interrupt Mask Register */
volatile unsigned int *EVBIFRA = (volatile unsigned int *)0x752F; /* Group A Interrupt Flag Register*/
volatile unsigned int *EVBIFRB = (volatile unsigned int *)0x7530; /* Group B Interrupt Flag Register*/
volatile unsigned int *EVBIFRC = (volatile unsigned int *)0x7531; /* Group C Interrupt Flag Register*/
/* CAN registers*/
volatile unsigned int *CANMDER = (volatile unsigned int *)0x7100; /* CAN Mailbox Direction/Enable register*/
volatile unsigned int *CANTCR = (volatile unsigned int *)0x7101; /* CAN Transmission Control register*/
volatile unsigned int *CANRCR = (volatile unsigned int *)0x7102; /* CAN Recieve Control register */
volatile unsigned int *CANMCR = (volatile unsigned int *)0x7103; /* CAN Master Control register */
volatile unsigned int *CANBCR2 = (volatile unsigned int *)0x7104; /* CAN Bit Config register 2 */
volatile unsigned int *CANBCR1 = (volatile unsigned int *)0x7105; /* CAN Bit Config register 1*/
volatile unsigned int *CANESR = (volatile unsigned int *)0x7106; /* CAN Error Status register*/
volatile unsigned int *CANGSR = (volatile unsigned int *)0x7107; /* CAN Global Status register*/
volatile unsigned int *CANCEC = (volatile unsigned int *)0x7108; /* CAN Trans and Rcv Err counters */
volatile unsigned int *CANIFR = (volatile unsigned int *)0x7109; /* CAN Interrupt Flag Register*/
volatile unsigned int *CANIMR = (volatile unsigned int *)0x710a; /* CAN Interrupt Mask Register */
volatile unsigned int *CANLAM0H = (volatile unsigned int *)0x710b; /* CAN Local Acceptance Mask MBX0/1 */
volatile unsigned int *CANLAM0L = (volatile unsigned int *)0x710c; /* CAN Local Acceptance Mask MBX0/1*/
volatile unsigned int *CANLAM1H = (volatile unsigned int *)0x710d; /* CAN Local Acceptance Mask MBX2/3 */
volatile unsigned int *CANLAM1L = (volatile unsigned int *)0x710e; /* CAN Local Acceptance Mask MBX2/3*/
volatile unsigned int *CANMSGID0L = (volatile unsigned int *)0x7200; /* CAN Message ID for mailbox 0 (lower 16 bits)*/
volatile unsigned int *CANMSGID0H = (volatile unsigned int *)0x7201; /* CAN Message ID for mailbox 0 (upper 16 bits)*/
volatile unsigned int *CANMSGCTRL0 = (volatile unsigned int *)0x7202; /* CAN RTR and DLC*/
volatile unsigned int *CANMBX0A = (volatile unsigned int *)0x7204; /* CAN 2 of 8 bytes of Mailbox 0*/
volatile unsigned int *CANMBX0B = (volatile unsigned int *)0x7205; /* CAN 2 of 8 bytes of Mailbox 0*/
volatile unsigned int *CANMBX0C = (volatile unsigned int *)0x7206; /* CAN 2 of 8 bytes of Mailbox 0 */
volatile unsigned int *CANMBX0D = (volatile unsigned int *)0x7207; /* CAN 2 of 8 bytes of Mailbox 0 */
volatile unsigned int *CANMSGID1L = (volatile unsigned int *)0x7208; /* CAN Message ID for mailbox 1 (lower 16 bits)*/
volatile unsigned int *CANMSGID1H = (volatile unsigned int *)0x7209; /* CAN Message ID for mailbox 1 (upper 16 bits)*/
volatile unsigned int *CANMSGCTRL1 = (volatile unsigned int *)0x720A; /* CAN RTR and DLC*/
volatile unsigned int *CANMBX1A = (volatile unsigned int *)0x720C; /* CAN 2 of 8 bytes of Mailbox 1*/
volatile unsigned int *CANMBX1B = (volatile unsigned int *)0x720D; /* CAN 2 of 8 bytes of Mailbox 1*/
volatile unsigned int *CANMBX1C = (volatile unsigned int *)0x720E; /* CAN 2 of 8 bytes of Mailbox 1*/
volatile unsigned int *CANMBX1D = (volatile unsigned int *)0x720F; /* CAN 2 of 8 bytes of Mailbox 1*/
volatile unsigned int *CANMSGID2L = (volatile unsigned int *)0x7210; /* CAN Message ID for mailbox 2 (lower 16 bits)*/
volatile unsigned int *CANMSGID2H = (volatile unsigned int *)0x7211; /* CAN Message ID for mailbox 2 (upper 16 bits)*/
volatile unsigned int *CANMSGCTRL2 = (volatile unsigned int *)0x7212; /* CAN RTR and DLC */
volatile unsigned int *CANMBX2A = (volatile unsigned int *)0x7214; /* CAN 2 of 8 bytes of Mailbox 2*/
volatile unsigned int *CANMBX2B = (volatile unsigned int *)0x7215; /* CAN 2 of 8 bytes of Mailbox 2*/
volatile unsigned int *CANMBX2C = (volatile unsigned int *)0x7216; /* CAN 2 of 8 bytes of Mailbox 2*/
volatile unsigned int *CANMBX2D = (volatile unsigned int *)0x7217; /* CAN 2 of 8 bytes of Mailbox 2*/
volatile unsigned int *CANMSGID3L = (volatile unsigned int *)0x7218; /* CAN Message ID for mailbox 3 (lower 16 bits)*/
volatile unsigned int *CANMSGID3H = (volatile unsigned int *)0x7219; /* CAN Message ID for mailbox 3 (upper 16 bits)*/
volatile unsigned int *CANMSGCTRL3 = (volatile unsigned int *)0x721A; /* CAN RTR and DLC*/
volatile unsigned int *CANMBX3A = (volatile unsigned int *)0x721C; /* CAN 2 of 8 bytes of Mailbox 3 */
volatile unsigned int *CANMBX3B = (volatile unsigned int *)0x721D; /* CAN 2 of 8 bytes of Mailbox 3 */
volatile unsigned int *CANMBX3C = (volatile unsigned int *)0x721E; /* CAN 2 of 8 bytes of Mailbox 3*/
volatile unsigned int *CANMBX3D = (volatile unsigned int *)0x721F; /* CAN 2 of 8 bytes of Mailbox 3 */
volatile unsigned int *CANMSGID4L = (volatile unsigned int *)0x7220; /* CAN Message ID for mailbox 4 (lower 16 bits)*/
volatile unsigned int *CANMSGID4H = (volatile unsigned int *)0x7221; /* CAN Message ID for mailbox 4 (upper 16 bits)*/
volatile unsigned int *CANMSGCTRL4 = (volatile unsigned int *)0x7222; /* CAN RTR and DLC*/
volatile unsigned int *CANMBX4A = (volatile unsigned int *)0x7224; /* CAN 2 of 8 bytes of Mailbox 4*/
volatile unsigned int *CANMBX4B = (volatile unsigned int *)0x7225; /* CAN 2 of 8 bytes of Mailbox 4*/
volatile unsigned int *CANMBX4C = (volatile unsigned int *)0x7226; /* CAN 2 of 8 bytes of Mailbox 4*/
volatile unsigned int *CANMBX4D = (volatile unsigned int *)0x7227; /* CAN 2 of 8 bytes of Mailbox 4*/
volatile unsigned int *CANMSGID5L = (volatile unsigned int *)0x7228; /* CAN Message ID for mailbox 5 (lower 16 bits)*/
volatile unsigned int *CANMSGID5H = (volatile unsigned int *)0x7229; /* CAN Message ID for mailbox 5 (upper 16 bits)*/
volatile unsigned int *CANMSGCTRL5 = (volatile unsigned int *)0x722A; /* CAN RTR and DLC*/
volatile unsigned int *CANMBX5A = (volatile unsigned int *)0x722C; /* CAN 2 of 8 bytes of Mailbox 5 */
volatile unsigned int *CANMBX5B = (volatile unsigned int *)0x722D; /* CAN 2 of 8 bytes of Mailbox 5 */
volatile unsigned int *CANMBX5C = (volatile unsigned int *)0x722E; /* CAN 2 of 8 bytes of Mailbox 5 */
volatile unsigned int *CANMBX5D = (volatile unsigned int *)0x722F; /* CAN 2 of 8 bytes of Mailbox 5 */
/*--------------------------------------------------- */
/*I/O space mapped registers */
/*--------------------------------------------------- */
volatile unsigned int *WSGR = (volatile unsigned int *)0x0FFFF; /* Wait朣tate Generator Control register */
volatile unsigned int *FCMR = (volatile unsigned int *)0x0FF0F; /* Flash control mode register */
/*--------------------------------------------------- */
/*Bit codes for Test bit instruction (BIT) (15 Loads bit 0 into TC)*/
/*---------------------------------------------------*/
#define BIT15 0x0000 /* Bit Code for 15*/
#define BIT14 0x0001 /* Bit Code for 14*/
#define BIT13 0x0002 /* Bit Code for 13*/
#define BIT12 0x0003 /* Bit Code for 12*/
#define BIT11 0x0004 /* Bit Code for 11*/
#define BIT10 0x0005 /* Bit Code for 10 */
#define BIT9 0x0006 /* Bit Code for 9 */
#define BIT8 0x0007 /* Bit Code for 8 */
#define BIT7 0x0008 /* Bit Code for 7 */
#define BIT6 0x0009 /* Bit Code for 6 */
#define BIT5 0x000A /* Bit Code for 5*/
#define BIT4 0x000B /* Bit Code for 4 */
#define BIT3 0x000C /* Bit Code for 3 */
#define BIT2 0x000D /* Bit Code for 2*/
#define BIT1 0x000E /* Bit Code for 1*/
#define BIT0 0x000F /* Bit Code for 0*/
#define wd_rst_1 0x0055
#define wd_rst_2 0x00aa
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -