?? 2443addr.h
字號:
#define rDISRCC0 (*(volatile unsigned *)0x4b000004) //DMA 0 Initial source control
#define rDIDST0 (*(volatile unsigned *)0x4b000008) //DMA 0 Initial Destination
#define rDIDSTC0 (*(volatile unsigned *)0x4b00000c) //DMA 0 Initial Destination control
#define rDCON0 (*(volatile unsigned *)0x4b000010) //DMA 0 Control
#define rDSTAT0 (*(volatile unsigned *)0x4b000014) //DMA 0 Status (Read Only)
#define rDCSRC0 (*(volatile unsigned *)0x4b000018) //DMA 0 Current source (Read Only)
#define rDCDST0 (*(volatile unsigned *)0x4b00001c) //DMA 0 Current destination (Read Only)
#define rDMASKTRIG0 (*(volatile unsigned *)0x4b000020) //DMA 0 Mask trigger
#define rDMAREQSEL0 (*(volatile unsigned *)0x4b000024) //DMA 0 Request Selection register
#define rDISRC1 (*(volatile unsigned *)0x4b000100) //DMA 1 Initial source
#define rDISRCC1 (*(volatile unsigned *)0x4b000104) //DMA 1 Initial source control
#define rDIDST1 (*(volatile unsigned *)0x4b000108) //DMA 1 Initial Destination
#define rDIDSTC1 (*(volatile unsigned *)0x4b00010c) //DMA 1 Initial Destination control
#define rDCON1 (*(volatile unsigned *)0x4b000110) //DMA 1 Control
#define rDSTAT1 (*(volatile unsigned *)0x4b000114) //DMA 1 Status (Read Only)
#define rDCSRC1 (*(volatile unsigned *)0x4b000118) //DMA 1 Current source (Read Only)
#define rDCDST1 (*(volatile unsigned *)0x4b00011c) //DMA 1 Current destination (Read Only)
#define rDMASKTRIG1 (*(volatile unsigned *)0x4b000120) //DMA 1 Mask trigger
#define rDMAREQSEL1 (*(volatile unsigned *)0x4b000124) //DMA 1 Request Selection register
#define rDISRC2 (*(volatile unsigned *)0x4b000200) //DMA 2 Initial source
#define rDISRCC2 (*(volatile unsigned *)0x4b000204) //DMA 2 Initial source control
#define rDIDST2 (*(volatile unsigned *)0x4b000208) //DMA 2 Initial Destination
#define rDIDSTC2 (*(volatile unsigned *)0x4b00020c) //DMA 2 Initial Destination control
#define rDCON2 (*(volatile unsigned *)0x4b000210) //DMA 2 Control
#define rDSTAT2 (*(volatile unsigned *)0x4b000214) //DMA 2 Status (Read Only)
#define rDCSRC2 (*(volatile unsigned *)0x4b000218) //DMA 2 Current source (Read Only)
#define rDCDST2 (*(volatile unsigned *)0x4b00021c) //DMA 2 Current destination (Read Only)
#define rDMASKTRIG2 (*(volatile unsigned *)0x4b000220) //DMA 2 Mask trigger
#define rDMAREQSEL2 (*(volatile unsigned *)0x4b000224) //DMA 2 Request Selection register
#define rDISRC3 (*(volatile unsigned *)0x4b000300) //DMA 3 Initial source
#define rDISRCC3 (*(volatile unsigned *)0x4b000304) //DMA 3 Initial source control
#define rDIDST3 (*(volatile unsigned *)0x4b000308) //DMA 3 Initial Destination
#define rDIDSTC3 (*(volatile unsigned *)0x4b00030c) //DMA 3 Initial Destination control
#define rDCON3 (*(volatile unsigned *)0x4b000310) //DMA 3 Control
#define rDSTAT3 (*(volatile unsigned *)0x4b000314) //DMA 3 Status (Read Only)
#define rDCSRC3 (*(volatile unsigned *)0x4b000318) //DMA 3 Current source (Read Only)
#define rDCDST3 (*(volatile unsigned *)0x4b00031c) //DMA 3 Current destination (Read Only)
#define rDMASKTRIG3 (*(volatile unsigned *)0x4b000320) //DMA 3 Mask trigger
#define rDMAREQSEL3 (*(volatile unsigned *)0x4b000324) //DMA 3 Request Selection register
#define rDISRC4 (*(volatile unsigned *)0x4b000400) //DMA 3 Initial source
#define rDISRCC4 (*(volatile unsigned *)0x4b000404) //DMA 3 Initial source control
#define rDIDST4 (*(volatile unsigned *)0x4b000408) //DMA 3 Initial Destination
#define rDIDSTC4 (*(volatile unsigned *)0x4b00040c) //DMA 3 Initial Destination control
#define rDCON4 (*(volatile unsigned *)0x4b000410) //DMA 3 Control
#define rDSTAT4 (*(volatile unsigned *)0x4b000414) //DMA 3 Status (Read Only)
#define rDCSRC4 (*(volatile unsigned *)0x4b000418) //DMA 3 Current source (Read Only)
#define rDCDST4 (*(volatile unsigned *)0x4b00041c) //DMA 3 Current destination (Read Only)
#define rDMASKTRIG4 (*(volatile unsigned *)0x4b000420) //DMA 3 Mask trigger
#define rDMAREQSEL4 (*(volatile unsigned *)0x4b000424) //DMA 3 Request Selection register
#define rDISRC5 (*(volatile unsigned *)0x4b000500) //DMA 3 Initial source
#define rDISRCC5 (*(volatile unsigned *)0x4b000504) //DMA 3 Initial source control
#define rDIDST5 (*(volatile unsigned *)0x4b000508) //DMA 3 Initial Destination
#define rDIDSTC5 (*(volatile unsigned *)0x4b00050c) //DMA 3 Initial Destination control
#define rDCON5 (*(volatile unsigned *)0x4b000510) //DMA 3 Control
#define rDSTAT5 (*(volatile unsigned *)0x4b000514) //DMA 3 Status (Read Only)
#define rDCSRC5 (*(volatile unsigned *)0x4b000518) //DMA 3 Current source (Read Only)
#define rDCDST5 (*(volatile unsigned *)0x4b00051c) //DMA 3 Current destination (Read Only)
#define rDMASKTRIG5 (*(volatile unsigned *)0x4b000520) //DMA 3 Mask trigger
#define rDMAREQSEL5 (*(volatile unsigned *)0x4b000524) //DMA 3 Request Selection register
#define DMA_REG_BASE 0x4B000000 // added by junon
#define DMA_REG_OFFSET 0x100
typedef struct tag_DMA_REGS
{
unsigned int rDiSrc;
unsigned int rDiSrcc;
unsigned int rDiDst;
unsigned int rDiDstc;
unsigned int rDCon;
unsigned int rDStat;
unsigned int rDcSrc;
unsigned int rDcDst;
unsigned int rDMaskTrig;
unsigned int rDmaReqSel;
} DMA_REGS;
// chapter10 INTERRUPT - gom
#define rSRCPND (*(volatile unsigned *)0x4a000000) //Interrupt request status
#define rINTMOD (*(volatile unsigned *)0x4a000004) //Interrupt mode control
#define rINTMSK (*(volatile unsigned *)0x4a000008) //Interrupt mask control
#define rPRIORITY (*(volatile unsigned *)0x4a00000c) //IRQ priority control
#define rINTPND (*(volatile unsigned *)0x4a000010) //Interrupt request status
#define rINTOFFSET (*(volatile unsigned *)0x4a000014) //Interruot request source offset
#define rSUBSRCPND (*(volatile unsigned *)0x4a000018) //Sub source pending
#define rINTSUBMSK (*(volatile unsigned *)0x4a00001c) //Interrupt sub mask
// chapter11 I/O PORT - oh
#define rGPACON (*(volatile unsigned *)0x56000000) //Configure the pins of port A
#define rGPADAT (*(volatile unsigned *)0x56000004) //The data for port A
#define rGPBCON (*(volatile unsigned *)0x56000010) //Configure the pins of port B
#define rGPBDAT (*(volatile unsigned *)0x56000014) //The data for port B
#define rGPBUDP (*(volatile unsigned *)0x56000018) //Pull-down disable for port
#define rGPCCON (*(volatile unsigned *)0x56000020) //Configure the pins of port C
#define rGPCDAT (*(volatile unsigned *)0x56000024) //The data for port C
#define rGPCUDP (*(volatile unsigned *)0x56000028) //Pull-down disable for port C
#define rGPDCON (*(volatile unsigned *)0x56000030) //Configure the pins of port D
#define rGPDDAT (*(volatile unsigned *)0x56000034) //The data for port D
#define rGPDUDP (*(volatile unsigned *)0x56000038) //Pull-down disable for port D
#define rGPECON (*(volatile unsigned *)0x56000040) //Configure the pins of port E
#define rGPEDAT (*(volatile unsigned *)0x56000044) //The data for port E
#define rGPEUDP (*(volatile unsigned *)0x56000048) //Pull-down disable for port E
#define rGPFCON (*(volatile unsigned *)0x56000050) //Configure the pins of port F
#define rGPFDAT (*(volatile unsigned *)0x56000054) //The data for port F
#define rGPFUDP (*(volatile unsigned *)0x56000058) //Pull-down disable for port F
#define rGPGCON (*(volatile unsigned *)0x56000060) //Configure the pins of portt G
#define rGPGDAT (*(volatile unsigned *)0x56000064) //The data for port G
#define rGPGUDP (*(volatile unsigned *)0x56000068) //Pull-down disable for port G
#define rGPHCON (*(volatile unsigned *)0x56000070) //Configure the pins of porttt H
#define rGPHDAT (*(volatile unsigned *)0x56000074) //The data for port H
#define rGPHUDP (*(volatile unsigned *)0x56000078) //Pull-down disable for port H
#define rGPJCON (*(volatile unsigned *)0x560000D0) //Configure the pins of portttt J
#define rGPJDAT (*(volatile unsigned *)0x560000D4) //The data for port J
#define rGPJUDP (*(volatile unsigned *)0x560000D8) //Pull-down disable for porl J
#define rGPKCON (*(volatile unsigned *)0x560000E0) //Configure the pins of portttt K
#define rGPKDAT (*(volatile unsigned *)0x560000E4) //The data for port K
#define rGPKUDP (*(volatile unsigned *)0x560000E8) //Pull-down disable for porl K
#define rGPLCON (*(volatile unsigned *)0x560000F0) //Configure the pins of portttt F
#define rGPLDAT (*(volatile unsigned *)0x560000F4) //The data for port F
#define rGPLUDP (*(volatile unsigned *)0x560000F8) //Pull-down disable for porl F
#define rGPMCON (*(volatile unsigned *)0x56000100) //Configure the pins of portttt M
#define rGPMDAT (*(volatile unsigned *)0x56000104) //The data for port M
#define rGPMUDP (*(volatile unsigned *)0x56000108) //Pull-down disable for porl M
#define rMISCCR (*(volatile unsigned *)0x56000080) //Miscellaneous control
#define rDCLKCON (*(volatile unsigned *)0x56000084) //DCLK0/1 control
#define rEXTINT0 (*(volatile unsigned *)0x56000088) //External interrupt control register 0
#define rEXTINT1 (*(volatile unsigned *)0x5600008C) //External interrupt control register 1
#define rEXTINT2 (*(volatile unsigned *)0x56000090) //External interrupt control register 2
#define rEINTFLT0 (*(volatile unsigned *)0x56000094) //Reserved
#define rEINTFLT1 (*(volatile unsigned *)0x56000098) //Reserved
#define rEINTFLT2 (*(volatile unsigned *)0x5600009c) //External interrupt filter control register 2
#define rEINTFLT3 (*(volatile unsigned *)0x560000A0) //External interrupt filter control register 3
#define rEINTMASK (*(volatile unsigned *)0x560000A4) //External interrupt mask
#define rEINTPEND (*(volatile unsigned *)0x560000A8) //External interrupt pending
#define rGSTATUS0 (*(volatile unsigned *)0x560000AC) //External pin status
#define rGSTATUS1 (*(volatile unsigned *)0x560000B0) //Chip ID(0x32440000)
#define rGSTATUS2 (*(volatile unsigned *)0x560000B4) //Infrom
#define rGSTATUS3 (*(volatile unsigned *)0x560000B8) //Infrom
#define rGSTATUS4 (*(volatile unsigned *)0x560000BC) //Infrom
#define rMSLCON (*(volatile unsigned *)0x560000CC) //memory stop control register
// chapter12 WATCH DOG TIMER - junon
#define rWTCON (*(volatile unsigned *)0x53000000) //Watch-dog timer mode
#define rWTDAT (*(volatile unsigned *)0x53000004) //Watch-dog timer data
#define rWTCNT (*(volatile unsigned *)0x53000008) //Watch-dog timer count
// chapter13 PWM TIMER - jcs
#define rTCFG0 (*(volatile unsigned *)0x51000000) //Configures the two 8-bit presclers
#define rTCFG1 (*(volatile unsigned *)0x51000004) //5-MUX & DMA mode selecton
#define rTCON (*(volatile unsigned *)0x51000008) //Timer control
#define rTCNTB0 (*(volatile unsigned *)0x5100000c) //Timer 0 count buffer
#define rTCMPB0 (*(volatile unsigned *)0x51000010) //Timer 0 compare buffer
#define rTCNTO0 (*(volatile unsigned *)0x51000014) //Timer 0 count observation
#define rTCNTB1 (*(volatile unsigned *)0x51000018) //Timer 1 count buffer
#define rTCMPB1 (*(volatile unsigned *)0x5100001c) //Timer 1 compare buffer
#define rTCNTO1 (*(volatile unsigned *)0x51000020) //Timer 1 count observation
#define rTCNTB2 (*(volatile unsigned *)0x51000024) //Timer 2 count buffer
#define rTCMPB2 (*(volatile unsigned *)0x51000028) //Timer 2 compare buffer
#define rTCNTO2 (*(volatile unsigned *)0x5100002c) //Timer 2 count observation
#define rTCNTB3 (*(volatile unsigned *)0x51000030) //Timer 3 count buffer
#define rTCMPB3 (*(volatile unsigned *)0x51000034) //Timer 3 compare buffer
#define rTCNTO3 (*(volatile unsigned *)0x51000038) //Timer 3 count observation
#define rTCNTB4 (*(volatile unsigned *)0x5100003c) //Timer 4 count buffer
#define rTCNTO4 (*(volatile unsigned *)0x51000040) //Timer 4 count observation
// chapter14 RTC - oh
#ifdef __BIG_ENDIAN
#define rRTCCON (*(volatile unsigned char *)0x57000043) //RTC control
#define rTICNT0 (*(volatile unsigned char *)0x57000047) //Tick time count register 0
#define rTICNT1 (*(volatile unsigned char *)0x5700004F) //Tick time count register 1
#define rRTCALM (*(volatile unsigned char *)0x57000053) //RTC alarm control
#define rALMSEC (*(volatile unsigned char *)0x57000057) //Alarm second
#define rALMMIN (*(volatile unsigned char *)0x5700005b) //Alarm minute
#define rALMHOUR (*(volatile unsigned char *)0x5700005f) //Alarm Hour
#define rALMDATE (*(volatile unsigned char *)0x57000063) //Alarm date //edited by junon
#define rALMMON (*(volatile unsigned char *)0x57000067) //Alarm month
#define rALMYEAR (*(volatile unsigned char *)0x5700006b) //Alarm year
#define rRTCRST (*(volatile unsigned char *)0x5700006f) //RTC round reset
#define rBCDSEC (*(volatile unsigned char *)0x57000073) //BCD second
#define rBCDMIN (*(volatile unsigned char *)0x57000077) //BCD minute
#define rBCDHOUR (*(volatile unsigned char *)0x5700007b) //BCD hour
#define rBCDDATE (*(volatile unsigned char *)0x5700007f) //BCD date //edited by junon
#define rBCDDAY (*(volatile unsigned char *)0x57000083) //BCD day //edited by junon
#define rBCDMON (*(volatile unsigned char *)0x57000087) //BCD month
#define rBCDYEAR (*(volatile unsigned char *)0x5700008b) //BCD year
#define rRTCLBAT (*(volatile unsigned char *)0x57000097) //RTC LOW BATTERY CHECK
#else //Little Endian
#define rRTCCON (*(volatile unsigned char *)0x57000040) //RTC control
#define rTICNT0 (*(volatile unsigned char *)0x57000044) //Tick time count register 0
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -