?? 240x.h
字號:
#define CAN_MBX2B *(volatile unsigned int *)0x7215 /* CAN 2 of 8 Bytes of Mailbox 2 */
#define CAN_MBX2C *(volatile unsigned int *)0x7216 /* CAN 2 of 8 Bytes of Mailbox 2 */
#define CAN_MBX2D *(volatile unsigned int *)0x7217 /* CAN 2 of 8 Bytes of Mailbox 2 */
#define CAN_MSGID3L *(volatile unsigned int *)0x7218 /* CAN Message ID for MB3 , low */
#define CAN_MSGID3H *(volatile unsigned int *)0x7219 /* CAN Message ID for MB3 , high */
#define CAN_MSGCTRL3 *(volatile unsigned int *)0x721A /* CAN Message Control Field 3 */
#define CAN_MBX3A *(volatile unsigned int *)0x721C /* CAN 2 of 8 Bytes of Mailbox 3 */
#define CAN_MBX3B *(volatile unsigned int *)0x721D /* CAN 2 of 8 Bytes of Mailbox 3 */
#define CAN_MBX3C *(volatile unsigned int *)0x721E /* CAN 2 of 8 Bytes of Mailbox 3 */
#define CAN_MBX3D *(volatile unsigned int *)0x721F /* CAN 2 of 8 Bytes of Mailbox 3 */
#define CAN_MSGID4L *(volatile unsigned int *)0x7220 /* CAN Message ID for MB4 , low */
#define CAN_MSGID4H *(volatile unsigned int *)0x7221 /* CAN Message ID for MB4 , high */
#define CAN_MSGCTRL4 *(volatile unsigned int *)0x7222 /* CAN Message Control Field 4 */
#define CAN_MBX4A *(volatile unsigned int *)0x7224 /* CAN 2 of 8 Bytes of Mailbox 4 */
#define CAN_MBX4B *(volatile unsigned int *)0x7225 /* CAN 2 of 8 Bytes of Mailbox 4 */
#define CAN_MBX4C *(volatile unsigned int *)0x7226 /* CAN 2 of 8 Bytes of Mailbox 4 */
#define CAN_MBX4D *(volatile unsigned int *)0x7227 /* CAN 2 of 8 Bytes of Mailbox 4 */
#define CAN_MSGID5L *(volatile unsigned int *)0x7228 /* CAN Message ID for MB5 , low */
#define CAN_MSGID5H *(volatile unsigned int *)0x7229 /* CAN Message ID for MB5 , high */
#define CAN_MSGCTRL5 *(volatile unsigned int *)0x722A /* CAN Message Control Field 5 */
#define CAN_MBX5A *(volatile unsigned int *)0x722C /* CAN 2 of 8 Bytes of Mailbox 5 */
#define CAN_MBX5B *(volatile unsigned int *)0x722D /* CAN 2 of 8 Bytes of Mailbox 5 */
#define CAN_MBX5C *(volatile unsigned int *)0x722E /* CAN 2 of 8 Bytes of Mailbox 5 */
#define CAN_MBX5D *(volatile unsigned int *)0x722F /* CAN 2 of 8 Bytes of Mailbox 5 */
#define GPTCONA *(volatile unsigned int *)0x7400 /* GP Timer Control Register EVA */
#define T1CNT *(volatile unsigned int *)0x7401 /* GP Timer 1 Counter Register */
#define T1CMPR *(volatile unsigned int *)0x7402 /* GP Timer 1 Compare Register */
#define T1PR *(volatile unsigned int *)0x7403 /* GP Timer 1 Period Register */
#define T1CON *(volatile unsigned int *)0x7404 /* GP Timer 1 Control Register */
#define T2CNT *(volatile unsigned int *)0x7405 /* GP Timer 2 Counter Register */
#define T2CMPR *(volatile unsigned int *)0x7406 /* GP Timer 2 Compare Register */
#define T2PR *(volatile unsigned int *)0x7407 /* GP Timer 2 Period Register */
#define T2CON *(volatile unsigned int *)0x7408 /* GP Timer 2 Control Register */
#define COMCONA *(volatile unsigned int *)0x7411 /* Compare Control Register EVA */
#define ACTRA *(volatile unsigned int *)0x7413 /* Full-Compare Action Register */
#define DBTCONA *(volatile unsigned int *)0x7415 /* Dead-Band Timer Control Register */
#define CMPR1 *(volatile unsigned int *)0x7417 /* Full Compare Unit Compare Register 1 */
#define CMPR2 *(volatile unsigned int *)0x7418 /* Full Compare Unit Compare Register 2 */
#define CMPR3 *(volatile unsigned int *)0x7419 /* Full Compare Unit Compare Register 3 */
#define CAPCONA *(volatile unsigned int *)0x7420 /* Capture Control Register EVA */
#define CAPFIFOA *(volatile unsigned int *)0x7422 /* Capture FIFO Status Register EVA */
#define CAP1FIFO *(volatile unsigned int *)0x7423 /* Two-Level-Deep Capture FIFO Stack 1 */
#define CAP2FIFO *(volatile unsigned int *)0x7424 /* Two-Level-Deep Capture FIFO Stack 2 */
#define CAP3FIFO *(volatile unsigned int *)0x7425 /* Two-Level-Deep Capture FIFO Stack 3 */
#define CAP1FBOT *(volatile unsigned int *)0x7427 /* Capture 1 Bottom Stack Register */
#define CAP2FBOT *(volatile unsigned int *)0x7428 /* Capture 2 Bottom Stack Register */
#define CAP3FBOT *(volatile unsigned int *)0x7429 /* Capture 3 Bottom Stack Register */
#define EVAIMRA *(volatile unsigned int *)0x742C /* EVA Interrupt Mask Register A */
#define EVAIMRB *(volatile unsigned int *)0x742D /* EVA Interrupt Mask Register B */
#define EVAIMRC *(volatile unsigned int *)0x742E /* EVA Interrupt Mask Register C */
#define EVAIFRA *(volatile unsigned int *)0x742F /* EVA Interrupt Flag Register A */
#define EVAIFRB *(volatile unsigned int *)0x7430 /* EVA Interrupt Flag Register B */
#define EVAIFRC *(volatile unsigned int *)0x7431 /* EVA Interrupt Flag Register C */
#define GPTCONB *(volatile unsigned int *)0x7500 /* GP Timer Control Register EVB */
#define T3CNT *(volatile unsigned int *)0x7501 /* GP Timer 3 Counter Register */
#define T3CMPR *(volatile unsigned int *)0x7502 /* GP Timer 3 Compare Register */
#define T3PR *(volatile unsigned int *)0x7503 /* GP Timer 3 Period Register */
#define T3CON *(volatile unsigned int *)0x7504 /* GP Timer 3 Control Register */
#define T4CNT *(volatile unsigned int *)0x7505 /* GP Timer 4 Counter Register */
#define T4CMPR *(volatile unsigned int *)0x7506 /* GP Timer 4 Compare Register */
#define T4PR *(volatile unsigned int *)0x7507 /* GP Timer 4 Period Register */
#define T4CON *(volatile unsigned int *)0x7508 /* GP Timer 4 Control Register */
#define COMCONB *(volatile unsigned int *)0x7511 /* Compare Control Register EVB */
#define ACTRB *(volatile unsigned int *)0x7513 /* Full-Compare Action Register EVB */
#define DBTCONB *(volatile unsigned int *)0x7515 /* Dead-Band Timer Control Register EVB */
#define CMPR4 *(volatile unsigned int *)0x7517 /* Full Compare Unit Compare Register 4 */
#define CMPR5 *(volatile unsigned int *)0x7518 /* Full Compare Unit Compare Register 5 */
#define CMPR6 *(volatile unsigned int *)0x7519 /* Full Compare Unit Compare Register 6 */
#define CAPCONB *(volatile unsigned int *)0x7520 /* Capture Control Register EVB */
#define CAPFIFOB *(volatile unsigned int *)0x7522 /* Capture FIFO Status Register EVB */
#define CAP4FIFO *(volatile unsigned int *)0x7523 /* Two-Level-Deep Capture FIFO Stack 4 */
#define CAP5FIFO *(volatile unsigned int *)0x7524 /* Two-Level-Deep Capture FIFO Stack 5 */
#define CAP6FIFO *(volatile unsigned int *)0x7525 /* Two-Level-Deep Capture FIFO Stack 6 */
#define CAP4FBOT *(volatile unsigned int *)0x7527 /* Capture 4 Bottom Stack Register */
#define CAP5FBOT *(volatile unsigned int *)0x7528 /* Capture 5 Bottom Stack Register */
#define CAP6FBOT *(volatile unsigned int *)0x7529 /* Capture 6 Bottom Stack Register */
#define EVBIMRA *(volatile unsigned int *)0x752C /* EVB Interrupt Mask Register A */
#define EVBIMRB *(volatile unsigned int *)0x752D /* EVB Interrupt Mask Register B */
#define EVBIMRC *(volatile unsigned int *)0x752E /* EVB Interrupt Mask Register C */
#define EVBIFRA *(volatile unsigned int *)0x752F /* EVB Interrupt Flag Register A */
#define EVBIFRB *(volatile unsigned int *)0x7530 /* EVB Interrupt Flag Register B */
#define EVBIFRC *(volatile unsigned int *)0x7531 /* EVB Interrupt Flag Register C */
/*--------------------------------------------------------------------------------------+ */
/* I/O Space Mapped Registers IO SPACE 0xffff | */
/* -------------------------------------------------------------------------------------+ */
ioport unsigned portFFFF; /* Declare unsigned port 0xffff in I/O */
#define WSGR portFFFF /* Define WSGR to point to ioport */
#define addata0 *(volatile unsigned int *)0x0340
#define addata1 *(volatile unsigned int *)0x0341
#define addata2 *(volatile unsigned int *)0x0342
#define addata3 *(volatile unsigned int *)0x0343
#define addata4 *(volatile unsigned int *)0x0344
#define addata5 *(volatile unsigned int *)0x0345
#define addata6 *(volatile unsigned int *)0x0346
#define addata7 *(volatile unsigned int *)0x0347
#define tac *(volatile unsigned int *)0x03D0
#define t60 *(volatile unsigned int *)0x03D1
#define tsyn *(volatile unsigned int *)0x03D2
#define tsyn1 *(volatile unsigned int *)0x03D3
#define Taf *(volatile unsigned int *)0x03D9
#define Zflag *(volatile unsigned int *)0x03DA
#define mcword0 *(volatile unsigned int *)0x03e0
#define mcword1 *(volatile unsigned int *)0x03e1
#define mcword2 *(volatile unsigned int *)0x03e2
#define mcword3 *(volatile unsigned int *)0x03e3
#define mcword4 *(volatile unsigned int *)0x03e4
#define mcword5 *(volatile unsigned int *)0x03e5
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -