📄 mc68376.h
字号:
#define SIM_CSOP2 (volatile short *)(ABase+0xA56) /* Chip-select Option 2 (word) */
#define SIM_CSBAR3 (volatile short *)(ABase+0xA58) /* Chip-select Base #3 (word) */
#define SIM_CSOP3 (volatile short *)(ABase+0xA5A) /* Chip-select Option 3 (word) */
#define SIM_CSBAR4 (volatile short *)(ABase+0xA5C) /* Chip-select Base #4 (word) */
#define SIM_CSOP4 (volatile short *)(ABase+0xA5E) /* Chip-select Option 4 (word) */
#define SIM_CSBAR5 (volatile short *)(ABase+0xA60) /* Chip-select Base #5 (word) */
#define SIM_CSOP5 (volatile short *)(ABase+0xA62) /* Chip-select Option 5 (word) */
#define SIM_CSBAR6 (volatile short *)(ABase+0xA64) /* Chip-select Base #6 (word) */
#define SIM_CSOP6 (volatile short *)(ABase+0xA66) /* Chip-select Option 6 (word) */
#define SIM_CSBAR7 (volatile short *)(ABase+0xA68) /* Chip-select Base #7 (word) */
#define SIM_CSOP7 (volatile short *)(ABase+0xA6A) /* Chip-select Option 7 (word) */
#define SIM_CSBAR8 (volatile short *)(ABase+0xA6C) /* Chip-select Base #8 (word) */
#define SIM_CSOP8 (volatile short *)(ABase+0xA6E) /* Chip-select Option 8 (word) */
#define SIM_CSBAR9 (volatile short *)(ABase+0xA70) /* Chip-select Base #9 (word) */
#define SIM_CSOP9 (volatile short *)(ABase+0xA72) /* Chip-select Option 9 (word) */
#define SIM_CSBAR10 (volatile short *)(ABase+0xA74) /* Chip-select Base #10 (word) */
#define SIM_CSOP10 (volatile short *)(ABase+0xA76) /* Chip-select Option 10 (word)*/
/*************** Added by wzm *************************************************/
#define SIM_PORTC (volatile char *)(ABase+0xA41) /* Port C data (byte) */
/******************************** RAM MODULE *********************************/
#define RAM_MCR (volatile short *)(ABase+0xB00) /* Module Configuration Register (word) */
#define RAM_TST (volatile short *)(ABase+0xB02) /* Test Register (word) */
#define RAM_BAR (volatile short *)(ABase+0xB04) /* Base Address/Status Register (word) */
/******************************** QUEUED SERIAL MODULE ***********************/
#define QSM_QMCR (volatile short *)(ABase+0xC00) /* QSM Configuration Register (word) */
#define QSM_QTEST (volatile short *)(ABase+0xC02) /* QSM Test Register (word) */
#define QSM_QILR (volatile char *)(ABase+0xC04) /* QSM shorterrupt Level Register (byte) */
#define QSM_QIVR (volatile char *)(ABase+0xC05) /* QSM shorterrupt Vector Register (byte)*/
#define QSM_SCCR0 (volatile short *)(ABase+0xC08) /* SCI Control Register 0 (word) */
#define QSM_SCCR1 (volatile short *)(ABase+0xC0A) /* SCI Control Register 1 (word) */
#define QSM_SCSR (volatile short *)(ABase+0xC0C) /* SCI Status Register (word) */
#define QSM_SCDR (volatile short *)(ABase+0xC0E) /* SCI Data Register (word)*/
#define QSM_QPDR (volatile char *)(ABase+0xC15) /* QSM Port Data Register (byte)*/
#define QSM_QPAR (volatile char *)(ABase+0xC16) /* QSM Pin Assignment Register (byte)*/
#define QSM_QDDR (volatile char *)(ABase+0xC17) /* QSM Data Direction Register (byte)*/
#define PORTQS (volatile char *)(ABase+0xC15) /* Port QS Data Register (byte)*/
#define PQSPAR (volatile char *)(ABase+0xC16) /* Port QS Pin Assignment Register (byte)*/
#define DDRQS (volatile char *)(ABase+0xC17) /* Port QS Data Direction Register (byte)*/
#define QSM_SPCR0 (volatile short *)(ABase+0xC18) /* QSPI Control Register 0 (word)*/
#define QSM_SPCR1 (volatile short *)(ABase+0xC1A) /* QSPI Control Register 1 (word)*/
#define QSM_SPCR2 (volatile short *)(ABase+0xC1C) /* QSPI Control Register 2 (word)*/
#define QSM_SPCR3 (volatile char *)(ABase+0xC1E) /* QSPI Control Register 3 (byte)*/
#define QSM_SPSR (volatile char *)(ABase+0xC1F) /* QSPI Status Register (byte)*/
#define QSM_SPIRD (volatile short *)(ABase+0xD00) /* QSPI RECEIVE DATA (16-word queue)*/
#define QSM_SPITD (volatile short *)(ABase+0xD20) /* QSPI TRANSMIT DATA (16-word queue)*/
#define QSM_SPICC (volatile char *)(ABase+0xD40) /* QSPI COMMAND CONTROL (16-byte queue)*/
/******************************** TIME PROCESSOR UNIT ************************/
#define TPU_TMCR (volatile short *)(ABase+0xE00) /* Module Configuration (word)*/
#define TPU_TTCR (volatile short *)(ABase+0xE02) /* Test Configuration (word)*/
#define TPU_DSCR (volatile short *)(ABase+0xE04) /* Development Support Control Register (word)*/
#define TPU_DSSR (volatile short *)(ABase+0xE06) /* Development Support Status Register (word)*/
#define TPU_TICR (volatile short *)(ABase+0xE08) /* shorterrupt Configuration (word)*/
#define TPU_CIER (volatile short *)(ABase+0xE0A) /* shorterrupt Enable (word)*/
#define TPU_CFSR0 (volatile short *)(ABase+0xE0C) /* Channel Function Select #0 (word)*/
#define TPU_CFSR1 (volatile short *)(ABase+0xE0E) /* Channel Function Select #1 (word)*/
#define TPU_CFSR2 (volatile short *)(ABase+0xE10) /* Channel Function Select #2 (word)*/
#define TPU_CFSR3 (volatile short *)(ABase+0xE12) /* Channel Function Select #3 (word)*/
#define TPU_HSQR0 (volatile short *)(ABase+0xE14) /* Host Sequence #0 (word)*/
#define TPU_HSQR1 (volatile short *)(ABase+0xE16) /* Host Sequence #1 (word)*/
#define TPU_HSRR0 (volatile short *)(ABase+0xE18) /* Host Service Request #0 (word)*/
#define TPU_HSRR1 (volatile short *)(ABase+0xE1A) /* Host Service Request #1 (word)*/
#define TPU_CPR0 (volatile short *)(ABase+0xE1C) /* Channel Priority #0 (word)*/
#define TPU_CPR1 (volatile short *)(ABase+0xE1E) /* Channel Priority #1 (word)*/
#define TPU_CISR (volatile short *)(ABase+0xE20) /* shorterrupt Status Register (word)*/
#define TPU_LINK (volatile short *)(ABase+0xE22) /* Link Register (word) */
#define TPU_SGLR (volatile short *)(ABase+0xE24) /* Service Grant Latch Register (word)*/
#define TPU_DCNR (volatile short *)(ABase+0xE26) /* Decoded Chann. Number Register(word)*/
#define TPU_PRAM0 (volatile short *)(ABase+0xF00) /* Parameter RAM #0 (6-word array)*/
#define TPU_PRAM1 (volatile short *)(ABase+0xF10) /* Parameter RAM #1 (6-word array)*/
#define TPU_PRAM2 (volatile short *)(ABase+0xF20) /* Parameter RAM #2 (6-word array)*/
#define TPU_PRAM3 (volatile short *)(ABase+0xF30) /* Parameter RAM #3 (6-word array)*/
#define TPU_PRAM4 (volatile short *)(ABase+0xF40) /* Parameter RAM #4 (6-word array)*/
#define TPU_PRAM5 (volatile short *)(ABase+0xF50) /* Parameter RAM #5 (6-word array)*/
#define TPU_PRAM6 (volatile short *)(ABase+0xF60) /* Parameter RAM #6 (6-word array)*/
#define TPU_PRAM7 (volatile short *)(ABase+0xF70) /* Parameter RAM #7 (6-word array)*/
#define TPU_PRAM8 (volatile short *)(ABase+0xF80) /* Parameter RAM #8 (6-word array)*/
#define TPU_PRAM9 (volatile short *)(ABase+0xF90) /* Parameter RAM #9 (6-word array)*/
#define TPU_PRAM11 (volatile short *)(ABase+0xFB0) /* Parameter RAM #11(6-word array)*/
#define TPU_PRAM10 (volatile short *)(ABase+0xFA0) /* Parameter RAM #9 (6-word array)*/
#define TPU_PRAM12 (volatile short *)(ABase+0xFC0) /* Parameter RAM #12(6-word array)*/
#define TPU_PRAM13 (volatile short *)(ABase+0xFD0) /* Parameter RAM #13(6-word array)*/
#define TPU_PRAM14 (volatile short *)(ABase+0xFE0) /* Parameter RAM #14(8-word array)*/
#define TPU_PRAM15 (volatile short *)(ABase+0xFF0) /* Parameter RAM #15(8-word array)*/
/**************************** CTM REGISTERS *********************************/
#define CTM_BIUMCR (volatile short *)(ABase+0x400) /* CTM Module Config. Reg.(word) */
#define CTM_CPCR (volatile short *)(ABase+0x408) /* CTM control reg.(word) */
#define CTM_MCSM2SIC (volatile short *)(ABase+0x410) /* MCSM2 Status/Interrupt/Control Reg. (word) */
#define CTM_MCSM2CNT (volatile short *)(ABase+0x412) /*MCSM2 Counter (word) */
#define CTM_MCSM2ML (volatile short *)(ABase+0x414) /* MCSM2 Modulus Latch(word) */
#define CTM_DASM3SIC (volatile short *)(ABase+0x418) /* DASM3 Status/Interrupt/Control Reg. (word) */
#define CTM_DASM3A (volatile short *)(ABase+0x41A) /*DASM3 Reg.A (word) */
#define CTM_DASM3B (volatile short *)(ABase+0x41C) /* DASM3 Reg.B (word) */
#define CTM_DASM4SIC (volatile short *)(ABase+0x420) /* DASM4 Status/Interrupt/Control Reg. (word) */
#define CTM_DASM4A (volatile short *)(ABase+0x422) /*DASM4 Reg.A (word) */
#define CTM_DASM4B (volatile short *)(ABase+0x424) /* DASM4 Reg.B (word) */
#define CTM_DASM9SIC (volatile short *)(ABase+0x448) /* DASM9 Status/Interrupt/Control Reg. (word) */
#define CTM_DASM9A (volatile short *)(ABase+0x44A) /*DASM9 Reg.A (word) */
#define CTM_DASM9B (volatile short *)(ABase+0x44C) /* DASM9 Reg.B (word) */
#define CTM_DASM10SIC (volatile short *)(ABase+0x450) /* DASM10 Status/Interrupt/Control Reg. (word) */
#define CTM_DASM10A (volatile short *)(ABase+0x452) /*DASM10 Reg.A (word) */
#define CTM_DASM10B (volatile short *)(ABase+0x454) /* DASM10 Reg.B (word) */
#define CTM_MCSM11SIC (volatile short *)(ABase+0x458) /* MCSM11 Status/Interrupt/Control Reg. (word) */
#define CTM_MCSM11CNT (volatile short *)(ABase+0x45A) /*MCSM11 Counter (word) */
#define CTM_MCSM11ML (volatile short *)(ABase+0x45C) /* MCSM11 Modulus Latch(word) */
#define CTM_FCSM12SIC (volatile short *)(ABase+0x460) /* FCSM12 Status/Interrupt/Control Reg. (word) */
#define CTM_FCSM12CNT (volatile short *)(ABase+0x462) /*FCSM12 Counter (word) */
#define CTM_PWM5SIC (volatile short *)(ABase+0x428) /* PWMSM5 Status/Interrupt/Control Reg. (word)*/
#define CTM_PWM5A (volatile short *)(ABase+0x42A) /* PWMSM5 Period Reg. (word)*/
#define CTM_PWM5B (volatile short *)(ABase+0x42C) /* PWMSM5 Pulse Width Reg. (word)*/
#define CTM_PWM5C (volatile short *)(ABase+0x42E) /* PWMSM5 Counter Reg. (word)*/
#define CTM_PWM6SIC (volatile short *)(ABase+0x430) /* PWMSM6 Status/Interrupt/Control Reg. (word)*/
#define CTM_PWM6A (volatile short *)(ABase+0x432) /* PWMSM6 Period Reg. (word)*/
#define CTM_PWM6B (volatile short *)(ABase+0x434) /* PWMSM6 Pulse Width Reg. (word)*/
#define CTM_PWM6C (volatile short *)(ABase+0x436) /* PWMSM6 Counter Reg. (word)*/
#define CTM_PWM7SIC (volatile short *)(ABase+0x438) /* PWMSM7 Status/Interrupt/Control Reg. (word)*/
#define CTM_PWM7A (volatile short *)(ABase+0x43A) /* PWMSM7 Period Reg. (word)*/
#define CTM_PWM7B (volatile short *)(ABase+0x43C) /* PWMSM7 Pulse Width Reg. (word)*/
#define CTM_PWM7C (volatile short *)(ABase+0x43E) /* PWMSM7 Counter Reg. (word)*/
#define CTM_PWM8SIC (volatile short *)(ABase+0x440) /* PWMSM8 Status/Interrupt/Control Reg. (word)*/
#define CTM_PWM8A (volatile short *)(ABase+0x442) /* PWMSM8 Period Reg. (word)*/
#define CTM_PWM8B (volatile short *)(ABase+0x444) /* PWMSM8 Pulse Width Reg. (word)*/
#define CTM_PWM8C (volatile short *)(ABase+0x446) /* PWMSM8 Counter Reg. (word)*/
#define MATCH_RATE11 (volatile short *)(0xFFFFb2)
#define RECEIVE_DATA11 (volatile short *)(0xFFFFb4)
#define TRANSMIT_DATA11 (volatile short *)(0xFFFFb4)
#define DATA_SIZE11 (volatile short *)(0xFFFFb6)
#define MATCH_RATE10 (volatile short *)(0xFFFFa2)
#define RECEIVE_DATA10 (volatile short *)(0xFFFFa4)
#define TRANSMIT_DATA10 (volatile short *)(0xFFFFa4)
#define DATA_SIZE10 (volatile short *)(0xFFFFa6)
#define MATCH_RATE14 (volatile short *)(0xFFFFE2)
#define RECEIVE_DATA14 (volatile short *)(0xFFFFE4)
#define TRANSMIT_DATA14 (volatile short *)(0xFFFFE4)
#define DATA_SIZE14 (volatile short *)(0xFFFFE6)
#define MATCH_RATE15 (volatile short *)(0xFFFFF2)
#define RECEIVE_DATA15 (volatile short *)(0xFFFFF4)
#define TRANSMIT_DATA15 (volatile short *)(0xFFFFF4)
#define DATA_SIZE15 (volatile short *)(0xFFFFF6)
/******** end ***************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -