rt-thread/libcpu/arm/sep4020/sep4020.h

868 lines
47 KiB
C
Raw Normal View History

#ifndef __SEP4020_H
#define __SEP4020_H
#include <rtthread.h>
/*Core definations*/
#define SVCMODE
#define Mode_USR 0x10
#define Mode_FIQ 0x11
#define Mode_IRQ 0x12
#define Mode_SVC 0x13
#define Mode_ABT 0x17
#define Mode_UND 0x1B
#define Mode_SYS 0x1F
/*
* <EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
*/
#define ESRAM_BASE 0x04000000
#define INTC_BASE 0x10000000
#define PMU_BASE 0x10001000
#define RTC_BASE 0x10002000
#define WD_BASE 0x10002000
#define TIMER_BASE 0x10003000
#define PWM_BASE 0x10004000
#define UART0_BASE 0X10005000
#define UART1_BASE 0X10006000
#define UART2_BASE 0X10007000
#define UART3_BASE 0X10008000
#define SSI_BASE 0X10009000
#define I2S_BASE 0x1000A000
#define MMC_BASE 0x1000B000
#define SD_BASE 0x1000B000
#define SMC0_BASE 0x1000C000
#define SMC1_BASE 0x1000D000
#define USBD_BASE 0x1000E000
#define GPIO_BASE 0x1000F000
#define EMI_BASE 0x11000000
#define DMAC_BASE 0x11001000
#define LCDC_BASE 0x11002000
#define MAC_BASE 0x11003000
#define AMBA_BASE 0x11005000
/*
* INTCģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10000000
*/
#define INTC_IER (INTC_BASE+0X000) /* IRQ<52>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_IMR (INTC_BASE+0X008) /* IRQ<52>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define INTC_IFR (INTC_BASE+0X010) /* IRQ<52><51><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD>жϼĴ<CFBC><C4B4><EFBFBD> */
#define INTC_IRSR (INTC_BASE+0X018) /* IRQδ<51><CEB4><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_ISR (INTC_BASE+0X020) /* IRQ<52>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_IMSR (INTC_BASE+0X028) /* IRQ<52><51><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_IFSR (INTC_BASE+0X030) /* IRQ<52>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_FIER (INTC_BASE+0X0C0) /* FIQ<49>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_FIMR (INTC_BASE+0X0C4) /* FIQ<49>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define INTC_FIFR (INTC_BASE+0X0C8) /* FIQ<49><51><EFBFBD><EFBFBD>ǿ<EFBFBD><C7BF><EFBFBD>жϼĴ<CFBC><C4B4><EFBFBD> */
#define INTC_FIRSR (INTC_BASE+0X0CC) /* FIQδ<51><CEB4><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_FISR (INTC_BASE+0X0D0) /* FIQ<49>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_FIFSR (INTC_BASE+0X0D4) /* FIQ<49>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_IPLR (INTC_BASE+0X0D8) /* IRQ<52>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define INTC_ICR1 (INTC_BASE+0X0DC) /* IRQ<52>ڲ<EFBFBD><DAB2>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD>1 */
#define INTC_ICR2 (INTC_BASE+0X0E0) /* IRQ<52>ڲ<EFBFBD><DAB2>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD>2 */
#define INTC_EXICR1 (INTC_BASE+0X0E4) /* IRQ<52>ⲿ<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD>1 */
#define INTC_EXICR2 (INTC_BASE+0X0E8) /* IRQ<52>ⲿ<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD>2 */
/*
* PMUģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10001000
*/
#define PMU_PLTR (PMU_BASE+0X000) /* PLL<4C><4C><EFBFBD>ȶ<EFBFBD><C8B6><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1> */
#define PMU_PMCR (PMU_BASE+0X004) /* ϵͳ<CFB5><CDB3>ʱ<EFBFBD><CAB1>PLL<4C>Ŀ<EFBFBD><C4BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PMU_PUCR (PMU_BASE+0X008) /* USBʱ<42><CAB1>PLL<4C>Ŀ<EFBFBD><C4BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PMU_PCSR (PMU_BASE+0X00C) /* <20>ڲ<EFBFBD>ģ<EFBFBD><C4A3>ʱ<EFBFBD><CAB1>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PMU_PDSLOW (PMU_BASE+0X010) /* SLOW״̬<D7B4><CCAC>ʱ<EFBFBD>ӵķ<D3B5>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD> */
#define PMU_PMDR (PMU_BASE+0X014) /* оƬ<D0BE><C6AC><EFBFBD><EFBFBD>ģʽ<C4A3>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PMU_RCTR (PMU_BASE+0X018) /* Reset<65><74><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PMU_CLRWAKUP (PMU_BASE+0X01C) /* WakeUp<55><70><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* RTCģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10002000
*/
#define RTC_STA_YMD (RTC_BASE+0X000) /* <20><>, <20><>, <20>ռ<EFBFBD><D5BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define RTC_STA_HMS (RTC_BASE+0X004) /* Сʱ, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define RTC_ALARM_ALL (RTC_BASE+0X008) /* <20><>ʱ<EFBFBD><CAB1>, <20><>, ʱ, <20>ּĴ<D6BC><C4B4><EFBFBD> */
#define RTC_CTR (RTC_BASE+0X00C) /* <20><><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define RTC_INT_EN (RTC_BASE+0X010) /* <20>ж<EFBFBD>ʹ<EFBFBD>ܼĴ<DCBC><C4B4><EFBFBD> */
#define RTC_INT_STS (RTC_BASE+0X014) /* <20>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define RTC_SAMP (RTC_BASE+0X018) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define RTC_WD_CNT (RTC_BASE+0X01C) /* Watch-Dog<6F><67><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define RTC_WD_SEV (RTC_BASE+0X020) /* Watch-Dog<6F><67><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define RTC_CONFIG_CHECK (RTC_BASE+0X024) /* <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>ȷ<EFBFBD>ϼĴ<CFBC><C4B4><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>֮ǰ<D6AE><C7B0>д0xaaaaaaaa) */
#define RTC_KEY0 (RTC_BASE+0X02C) /* <20><>Կ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* TIMERģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10003000
*/
#define TIMER_T1LCR (TIMER_BASE+0X000) /* ͨ<><CDA8>1<EFBFBD><31><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T1CCR (TIMER_BASE+0X004) /* ͨ<><CDA8>1<EFBFBD><31>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T1CR (TIMER_BASE+0X008) /* ͨ<><CDA8>1<EFBFBD><31><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T1ISCR (TIMER_BASE+0X00C) /* ͨ<><CDA8>1<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T1IMSR (TIMER_BASE+0X010) /* ͨ<><CDA8>1<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T2LCR (TIMER_BASE+0X020) /* ͨ<><CDA8>2<EFBFBD><32><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T2CCR (TIMER_BASE+0X024) /* ͨ<><CDA8>2<EFBFBD><32>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T2CR (TIMER_BASE+0X028) /* ͨ<><CDA8>2<EFBFBD><32><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T2ISCR (TIMER_BASE+0X02C) /* ͨ<><CDA8>2<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T2IMSR (TIMER_BASE+0X030) /* ͨ<><CDA8>2<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T3LCR (TIMER_BASE+0X040) /* ͨ<><CDA8>3<EFBFBD><33><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T3CCR (TIMER_BASE+0X044) /* ͨ<><CDA8>3<EFBFBD><33>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T3CR (TIMER_BASE+0X048) /* ͨ<><CDA8>3<EFBFBD><33><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T3ISCR (TIMER_BASE+0X04C) /* ͨ<><CDA8>3<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T3IMSR (TIMER_BASE+0X050) /* ͨ<><CDA8>3<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T3CAPR (TIMER_BASE+0X054) /* ͨ<><CDA8>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T4LCR (TIMER_BASE+0X060) /* ͨ<><CDA8>4<EFBFBD><34><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T4CCR (TIMER_BASE+0X064) /* ͨ<><CDA8>4<EFBFBD><34>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T4CR (TIMER_BASE+0X068) /* ͨ<><CDA8>4<EFBFBD><34><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T4ISCR (TIMER_BASE+0X06C) /* ͨ<><CDA8>4<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T4IMSR (TIMER_BASE+0X070) /* ͨ<><CDA8>4<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T4CAPR (TIMER_BASE+0X074) /* ͨ<><CDA8>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T5LCR (TIMER_BASE+0X080) /* ͨ<><CDA8>5<EFBFBD><35><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T5CCR (TIMER_BASE+0X084) /* ͨ<><CDA8>5<EFBFBD><35>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T5CR (TIMER_BASE+0X088) /* ͨ<><CDA8>5<EFBFBD><35><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T5ISCR (TIMER_BASE+0X08C) /* ͨ<><CDA8>5<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T5IMSR (TIMER_BASE+0X090) /* ͨ<><CDA8>5<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T5CAPR (TIMER_BASE+0X094) /* ͨ<><CDA8>5<EFBFBD><35><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T6LCR (TIMER_BASE+0X0A0) /* ͨ<><CDA8>6<EFBFBD><36><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T6CCR (TIMER_BASE+0X0A4) /* ͨ<><CDA8>6<EFBFBD><36>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T6CR (TIMER_BASE+0X0A8) /* ͨ<><CDA8>6<EFBFBD><36><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T6ISCR (TIMER_BASE+0X0AC) /* ͨ<><CDA8>6<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T6IMSR (TIMER_BASE+0X0B0) /* ͨ<><CDA8>6<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T6CAPR (TIMER_BASE+0X0B4) /* ͨ<><CDA8>6<EFBFBD><36><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T7LCR (TIMER_BASE+0X0C0) /* ͨ<><CDA8>7<EFBFBD><37><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T7CCR (TIMER_BASE+0X0C4) /* ͨ<><CDA8>7<EFBFBD><37>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T7CR (TIMER_BASE+0X0C8) /* ͨ<><CDA8>7<EFBFBD><37><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T7ISCR (TIMER_BASE+0X0CC) /* ͨ<><CDA8>7<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T7IMSR (TIMER_BASE+0X0D0) /* ͨ<><CDA8>7<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T8LCR (TIMER_BASE+0X0E0) /* ͨ<><CDA8>8<EFBFBD><38><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T8CCR (TIMER_BASE+0X0E4) /* ͨ<><CDA8>8<EFBFBD><38>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T8CR (TIMER_BASE+0X0E8) /* ͨ<><CDA8>8<EFBFBD><38><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T8ISCR (TIMER_BASE+0X0EC) /* ͨ<><CDA8>8<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T8IMSR (TIMER_BASE+0X0F0) /* ͨ<><CDA8>8<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T9LCR (TIMER_BASE+0X100) /* ͨ<><CDA8>9<EFBFBD><39><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T9CCR (TIMER_BASE+0X104) /* ͨ<><CDA8>9<EFBFBD><39>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T9CR (TIMER_BASE+0X108) /* ͨ<><CDA8>9<EFBFBD><39><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T9ISCR (TIMER_BASE+0X10C) /* ͨ<><CDA8>9<EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T9IMSR (TIMER_BASE+0X110) /* ͨ<><CDA8>9<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T10LCR (TIMER_BASE+0X120) /* ͨ<><CDA8>10<31><30><EFBFBD>ؼ<EFBFBD><D8BC><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T10CCR (TIMER_BASE+0X124) /* ͨ<><CDA8>10<31><30>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T10CR (TIMER_BASE+0X128) /* ͨ<><CDA8>10<31><30><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define TIMER_T10ISCR (TIMER_BASE+0X12C) /* ͨ<><CDA8>10<31>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_T10IMSR (TIMER_BASE+0X130) /* ͨ<><CDA8>10<31>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_TIMSR (TIMER_BASE+0X140) /* TIMER<45>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_TISCR (TIMER_BASE+0X144) /* TIMER<45>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define TIMER_TISR (TIMER_BASE+0X148) /* TIMER<45>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* PWMģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10004000
*/
#define PWM0_CTRL (PWM_BASE+0X000) /* PWM0<4D><30><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PWM0_DIV (PWM_BASE+0X004) /* PWM0<4D><30>Ƶ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM0_PERIOD (PWM_BASE+0X008) /* PWM0<4D><30><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define PWM0_DATA (PWM_BASE+0X00C) /* PWM0<4D><30><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define PWM0_CNT (PWM_BASE+0X010) /* PWM0<4D><30><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM0_STATUS (PWM_BASE+0X014) /* PWM0״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM1_CTRL (PWM_BASE+0X020) /* PWM1<4D><31><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PWM1_DIV (PWM_BASE+0X024) /* PWM1<4D><31>Ƶ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM1_PERIOD (PWM_BASE+0X028) /* PWM1<4D><31><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define PWM1_DATA (PWM_BASE+0X02C) /* PWM1<4D><31><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define PWM1_CNT (PWM_BASE+0X030) /* PWM1<4D><31><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM1_STATUS (PWM_BASE+0X034) /* PWM1״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM2_CTRL (PWM_BASE+0X040) /* PWM2<4D><32><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PWM2_DIV (PWM_BASE+0X044) /* PWM2<4D><32>Ƶ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM2_PERIOD (PWM_BASE+0X048) /* PWM2<4D><32><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define PWM2_DATA (PWM_BASE+0X04C) /* PWM2<4D><32><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define PWM2_CNT (PWM_BASE+0X050) /* PWM2<4D><32><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM2_STATUS (PWM_BASE+0X054) /* PWM2״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM3_CTRL (PWM_BASE+0X060) /* PWM3<4D><33><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define PWM3_DIV (PWM_BASE+0X064) /* PWM3<4D><33>Ƶ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM3_PERIOD (PWM_BASE+0X068) /* PWM3<4D><33><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define PWM3_DATA (PWM_BASE+0X06C) /* PWM3<4D><33><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define PWM3_CNT (PWM_BASE+0X070) /* PWM3<4D><33><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM3_STATUS (PWM_BASE+0X074) /* PWM3״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define PWM_INTMASK (PWM_BASE+0X080) /* PWM<57>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define PWM_INT (PWM_BASE+0X084) /* PWM<57>жϼĴ<CFBC><C4B4><EFBFBD> */
#define PWM_ENABLE (PWM_BASE+0X088) /* PWMʹ<4D>ܼĴ<DCBC><C4B4><EFBFBD> */
/*
* UART0ģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10005000
*/
#define UART0_DLBL (UART0_BASE+0X000) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õͰ<C3B5>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART0_RXFIFO (UART0_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART0_TXFIFO (UART0_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART0_DLBH (UART0_BASE+0X004) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø߰<C3B8>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART0_IER (UART0_BASE+0X004) /* <20>ж<EFBFBD>ʹ<EFBFBD>ܼĴ<DCBC><C4B4><EFBFBD> */
#define UART0_IIR (UART0_BASE+0X008) /* <20>ж<EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART0_FCR (UART0_BASE+0X008) /* FIFO<46><4F><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART0_LCR (UART0_BASE+0X00C) /* <20>п<EFBFBD><D0BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART0_MCR (UART0_BASE+0X010) /* Modem<65><6D><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART0_LSR (UART0_BASE+0X014) /* <20><>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART0_MSR (UART0_BASE+0X018) /* Modem״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* UART1ģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10006000
*/
#define UART1_DLBL (UART1_BASE+0X000) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õͰ<C3B5>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART1_RXFIFO (UART1_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART1_TXFIFO (UART1_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART1_DLBH (UART1_BASE+0X004) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø߰<C3B8>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART1_IER (UART1_BASE+0X004) /* <20>ж<EFBFBD>ʹ<EFBFBD>ܼĴ<DCBC><C4B4><EFBFBD> */
#define UART1_IIR (UART1_BASE+0X008) /* <20>ж<EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART1_FCR (UART1_BASE+0X008) /* FIFO<46><4F><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART1_LCR (UART1_BASE+0X00C) /* <20>п<EFBFBD><D0BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART1_MCR (UART1_BASE+0X010) /* Modem<65><6D><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART1_LSR (UART1_BASE+0X014) /* <20><>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART1_MSR (UART1_BASE+0X018) /* Modem״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* UART2ģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10007000
*/
#define UART2_DLBL (UART2_BASE+0X000) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õͰ<C3B5>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART2_RXFIFO (UART2_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART2_TXFIFO (UART2_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART2_DLBH (UART2_BASE+0X004) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø߰<C3B8>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART2_IER (UART2_BASE+0X004) /* <20>ж<EFBFBD>ʹ<EFBFBD>ܼĴ<DCBC><C4B4><EFBFBD> */
#define UART2_IIR (UART2_BASE+0X008) /* <20>ж<EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART2_FCR (UART2_BASE+0X008) /* FIFO<46><4F><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART2_LCR (UART2_BASE+0X00C) /* <20>п<EFBFBD><D0BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART2_MCR (UART2_BASE+0X010) /* Modem<65><6D><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART2_LSR (UART2_BASE+0X014) /* <20><>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART2_MSR (UART2_BASE+0X018) /* Modem״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* UART3ģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10008000
*/
#define UART3_DLBL (UART3_BASE+0X000) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õͰ<C3B5>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART3_RXFIFO (UART3_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART3_TXFIFO (UART3_BASE+0X000) /* <20><><EFBFBD><EFBFBD>FIFO */
#define UART3_DLBH (UART3_BASE+0X004) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ø߰<C3B8>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART3_IER (UART3_BASE+0X004) /* <20>ж<EFBFBD>ʹ<EFBFBD>ܼĴ<DCBC><C4B4><EFBFBD> */
#define UART3_IIR (UART3_BASE+0X008) /* <20>ж<EFBFBD>ʶ<EFBFBD><CAB6><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART3_FCR (UART3_BASE+0X008) /* FIFO<46><4F><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART3_LCR (UART3_BASE+0X00C) /* <20>п<EFBFBD><D0BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART3_MCR (UART3_BASE+0X010) /* Modem<65><6D><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define UART3_LSR (UART3_BASE+0X014) /* <20><>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define UART3_MSR (UART3_BASE+0X018) /* Modem״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* SSIģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x10009000
*/
#define SSI_CONTROL0 (SSI_BASE+0X000) /* <20><><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD>0 */
#define SSI_CONTROL1 (SSI_BASE+0X004) /* <20><><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD>1 */
#define SSI_SSIENR (SSI_BASE+0X008) /* SSIʹ<49>ܼĴ<DCBC><C4B4><EFBFBD> */
#define SSI_MWCR (SSI_BASE+0X00C) /* Microwire<72><65><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SSI_SER (SSI_BASE+0X010) /* <20><><EFBFBD>ʹ<E8B1B8>ܼĴ<DCBC><C4B4><EFBFBD> */
#define SSI_BAUDR (SSI_BASE+0X014) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define SSI_TXFTLR (SSI_BASE+0X018) /* <20><><EFBFBD><EFBFBD>FIFO<46><4F>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_RXFTLR (SSI_BASE+0X01C) /* <20><><EFBFBD><EFBFBD>FIFO<46><4F>ֵ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_TXFLR (SSI_BASE+0X020) /* <20><><EFBFBD><EFBFBD>FIFO״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_RXFLR (SSI_BASE+0X024) /* <20><><EFBFBD><EFBFBD>FIFO״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_SR (SSI_BASE+0X028) /* ״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_IMR (SSI_BASE+0X02C) /* <20>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define SSI_ISR (SSI_BASE+0X030) /* <20>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_RISR (SSI_BASE+0X034) /* <20>ж<EFBFBD>ԭʼ״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_TXOICR (SSI_BASE+0X038) /* <20><><EFBFBD><EFBFBD>FIFO<46><4F><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_RXOICR (SSI_BASE+0X03C) /* <20><><EFBFBD><EFBFBD>FIFO<46><4F><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_RXUICR (SSI_BASE+0X040) /* <20><><EFBFBD><EFBFBD>FIFO<46><4F><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_ICR (SSI_BASE+0X02C) /* <20>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_DMACR (SSI_BASE+0X04C) /* DMA<4D><41><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SSI_DMATDLR (SSI_BASE+0X050) /* DMA<4D><41><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_DMARDLR (SSI_BASE+0X054) /* DMA<4D><41><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SSI_DR (SSI_BASE+0X060) /* <20><><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
/*
* I2Sģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x1000A000
*/
#define I2S_CTRL (I2S_BASE+0X000) /* I2S<32><53><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define I2S_DATA (I2S_BASE+0X004) /* I2S<32><53><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define I2S_INT (I2S_BASE+0X008) /* I2S<32>жϼĴ<CFBC><C4B4><EFBFBD> */
#define I2S_STATUS (I2S_BASE+0X00C) /* I2S״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* SDģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x1000B000
*/
#define SDC_CLOCK_CONTROL (SD_BASE+0x00) /* SDIOʱ<4F>ӿ<EFBFBD><D3BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SDC_SOFTWARE_RESET (SD_BASE+0X04) /* SDIO<49><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD>λ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SDC_ARGUMENT (SD_BASE+0X08) /* SDIO<49><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SDC_COMMAND (SD_BASE+0X0C) /* SDIO<49><4F><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SDC_BLOCK_SIZE (SD_BASE+0X10) /* SDIO<49><4F><EFBFBD>ݿ鳤<DDBF>ȼĴ<C8BC><C4B4><EFBFBD> */
#define SDC_BLOCK_COUNT (SD_BASE+0X14) /* SDIO<49><4F><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD>Ŀ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SDC_TRANSFER_MODE (SD_BASE+0X18) /* SDIO<49><4F><EFBFBD><EFBFBD>ģʽѡ<CABD><D1A1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SDC_RESPONSE0 (SD_BASE+0X1c) /* SDIO<49><4F>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>0 */
#define SDC_RESPONSE1 (SD_BASE+0X20) /* SDIO<49><4F>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>1 */
#define SDC_RESPONSE2 (SD_BASE+0X24) /* SDIO<49><4F>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>2 */
#define SDC_RESPONSE3 (SD_BASE+0X28) /* SDIO<49><4F>Ӧ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>3 */
#define SDC_READ_TIMEOUT_CONTROL (SD_BASE+0X2c) /* SDIO<49><4F><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SDC_INTERRUPT_STATUS (SD_BASE+0X30) /* SDIO<49>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SDC_INTERRUPT_STATUS_MASK (SD_BASE+0X34) /* SDIO<49>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define SDC_READ_BUFER_ACCESS (SD_BASE+0X38) /* SDIO<49><4F><EFBFBD><EFBFBD>FIFO */
#define SDC_WRITE_BUFER_ACCESS (SD_BASE+0X3c) /* SDIO<49><4F><EFBFBD><EFBFBD>FIFO */
/*
* SMC0ģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x1000C000
*/
#define SMC0_CTRL (SMC0_BASE+0X000) /* SMC0<43><30><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SMC0_INT (SMC0_BASE+0X004) /* SMC0<43>жϼĴ<CFBC><C4B4><EFBFBD> */
#define SMC0_FD (SMC0_BASE+0X008) /* SMC0<43><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԫʱ<D4AA><CAB1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SMC0_CT (SMC0_BASE+0X00C) /* SMC0<43>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SMC0_BT (SMC0_BASE+0X010) /* SMC0<43><EFBFBD><E9B4AB>ʱ<EFBFBD><CAB1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* SMC1ģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x1000D000
*/
#define SMC1_CTRL (SMC1_BASE+0X000) /* SMC1<43><31><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define SMC1_INT (SMC1_BASE+0X004) /* SMC1<43>жϼĴ<CFBC><C4B4><EFBFBD> */
#define SMC1_FD (SMC1_BASE+0X008) /* SMC1<43><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԫʱ<D4AA><CAB1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SMC1_CT (SMC1_BASE+0X00C) /* SMC1<43>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define SMC1_BT (SMC1_BASE+0X010) /* SMC1<43><EFBFBD><E9B4AB>ʱ<EFBFBD><CAB1><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* USBDģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x1000E000
*/
#define USBD_PROTOCOLINTR (USBD_BASE+0X000) /* USBЭ<42><D0AD><EFBFBD>жϼĴ<CFBC><C4B4><EFBFBD> */
#define USBD_INTRMASK (USBD_BASE+0X004) /* USB<53>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define USBD_INTRCTRL (USBD_BASE+0X008) /* USB<53>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>Ϳ<EFBFBD><CDBF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define USBD_EPINFO (USBD_BASE+0X00C) /* USB<53><EFBFBD>˵<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_BCONFIGURATIONVALUE (USBD_BASE+0X010) /* SET_CCONFIGURATION<4F><4E>¼ */
#define USBD_BMATTRIBUTES (USBD_BASE+0X014) /* <20><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ԼĴ<D4BC><C4B4><EFBFBD> */
#define USBD_DEVSPEED (USBD_BASE+0X018) /* <20><>ǰ<EFBFBD><EFBFBD><E8B1B8><EFBFBD><EFBFBD><EFBFBD>ٶȼĴ<C8BC><C4B4><EFBFBD> */
#define USBD_FRAMENUMBER (USBD_BASE+0X01C) /* <20><>¼<EFBFBD><C2BC>ǰSOF<4F><46><EFBFBD>ڵ<EFBFBD>֡<EFBFBD><D6A1> */
#define USBD_EPTRANSACTIONS0 (USBD_BASE+0X020) /* <20><>¼<EFBFBD>´<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EPTRANSACTIONS1 (USBD_BASE+0X024) /* <20><>¼<EFBFBD>´<EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_APPIFUPDATE (USBD_BASE+0X028) /* <20>ӿںſ<DABA><C5BF>ٸ<EFBFBD><D9B8>¼Ĵ<C2BC><C4B4><EFBFBD> */
#define USBD_CFGINTERFACE0 (USBD_BASE+0X02C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE1 (USBD_BASE+0X030) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE2 (USBD_BASE+0X034) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE3 (USBD_BASE+0X038) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE4 (USBD_BASE+0X03C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE5 (USBD_BASE+0X040) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE6 (USBD_BASE+0X044) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE7 (USBD_BASE+0X048) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE8 (USBD_BASE+0X04C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE9 (USBD_BASE+0X050) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE10 (USBD_BASE+0X054) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE11 (USBD_BASE+0X058) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE12 (USBD_BASE+0X05C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE13 (USBD_BASE+0X060) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE14 (USBD_BASE+0X064) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE15 (USBD_BASE+0X068) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE16 (USBD_BASE+0X06C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE17 (USBD_BASE+0X070) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE18 (USBD_BASE+0X074) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE19 (USBD_BASE+0X078) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE20 (USBD_BASE+0X07C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE21 (USBD_BASE+0X080) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE22 (USBD_BASE+0X084) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE23 (USBD_BASE+0X088) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE24 (USBD_BASE+0X08C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE25 (USBD_BASE+0X090) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE26 (USBD_BASE+0X094) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE27 (USBD_BASE+0X098) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE28 (USBD_BASE+0X09C) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE29 (USBD_BASE+0X0A0) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE30 (USBD_BASE+0X0A4) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_CFGINTERFACE31 (USBD_BASE+0X0A8) /* <20><>¼<EFBFBD>ӿڵ<D3BF>ֵ */
#define USBD_PKTPASSEDCTRL (USBD_BASE+0X0AC) /* <20><>¼<EFBFBD>ɹ<EFBFBD><C9B9><EFBFBD><EFBFBD>յİ<D5B5><C4B0><EFBFBD> */
#define USBD_PKTDROPPEDCTRL (USBD_BASE+0X0B0) /* <20><>¼<EFBFBD><C2BC>ʧ<EFBFBD>İ<EFBFBD><C4B0><EFBFBD> */
#define USBD_CRCERRCTRL (USBD_BASE+0X0B4) /* <20><>¼CRC<52><43><EFBFBD><EFBFBD><EFBFBD>İ<EFBFBD><C4B0><EFBFBD> */
#define USBD_BITSTUFFERRCTRL (USBD_BASE+0X0B8) /* <20><>¼λ<C2BC><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>İ<EFBFBD><C4B0><EFBFBD> */
#define USBD_PIDERRCTRL (USBD_BASE+0X0BC) /* <20><>¼PID<49><44><EFBFBD><EFBFBD><EFBFBD>İ<EFBFBD><C4B0><EFBFBD> */
#define USBD_FRAMINGERRCTL (USBD_BASE+0X0C0) /* <20><>¼<EFBFBD><C2BC>SYNC<4E><43>EOP<4F>İ<EFBFBD><C4B0><EFBFBD> */
#define USBD_TXPKTCTRL (USBD_BASE+0X0C4) /* <20><>¼<EFBFBD><C2BC><EFBFBD>Ͱ<EFBFBD><CDB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_STATCTRLOV (USBD_BASE+0X0C8) /* <20><>¼ͳ<C2BC>ƼĴ<C6BC><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_TXLENGTH (USBD_BASE+0X0CC) /* <20><>¼ÿ<C2BC><C3BF>IN<49><4E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_RXLENGTH (USBD_BASE+0X0D0) /* <20><>¼OUT<55><54><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_RESUME (USBD_BASE+0X0D4) /* USB<53><42><EFBFBD>ѼĴ<D1BC><C4B4><EFBFBD> */
#define USBD_READFLAG (USBD_BASE+0X0D8) /* <20><><EFBFBD>첽״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>־ */
#define USBD_RECEIVETYPE (USBD_BASE+0X0DC) /* <20><><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_APPLOCK (USBD_BASE+0X0E0) /* <20><><EFBFBD>źżĴ<C5BC><C4B4><EFBFBD> */
#define USBD_EP0OUTADDR (USBD_BASE+0X100) /* <20>˵<EFBFBD>0<EFBFBD>˵<EFBFBD><CBB5>źͷ<C5BA><CDB7><EFBFBD> */
#define USBD_EP0OUTBMATTR (USBD_BASE+0X104) /* <20>˵<EFBFBD>0<EFBFBD><30><EFBFBD>ͼĴ<CDBC><C4B4><EFBFBD> */
#define USBD_EP0OUTMAXPKTSIZE (USBD_BASE+0X108) /* <20>˵<EFBFBD>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߴ<EFBFBD><DFB4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP0OUTIFNUM (USBD_BASE+0X10C) /* <20>˵<EFBFBD>0<EFBFBD>ӿںżĴ<C5BC><C4B4><EFBFBD> */
#define USBD_EP0OUTSTAT (USBD_BASE+0X110) /* <20>˵<EFBFBD>0״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP0OUTBMREQTYPE (USBD_BASE+0X114) /* <20>˵<EFBFBD>0 SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP0OUTBREQUEST (USBD_BASE+0X118) /* <20>˵<EFBFBD>0 SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP0OUTWVALUE (USBD_BASE+0X11C) /* <20>˵<EFBFBD>0 SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ */
#define USBD_EP0OUTWINDEX (USBD_BASE+0X120) /* <20>˵<EFBFBD>0 SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP0OUTWLENGTH (USBD_BASE+0X120) /* <20>˵<EFBFBD>0 SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>󳤶<EFBFBD> */
#define USBD_EP0OUTSYNCHFRAME (USBD_BASE+0X128) /* <20>˵<EFBFBD><30><CDAC><EFBFBD><EFBFBD>֡<EFBFBD><D6A1> */
#define USBD_EP1OUTADDR (USBD_BASE+0X12C) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>źͷ<C5BA><CDB7><EFBFBD> */
#define USBD_EP1OUTBMATTR (USBD_BASE+0X130) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼĴ<CDBC><C4B4><EFBFBD> */
#define USBD_EP1OUTMAXPKTSIZE (USBD_BASE+0X134) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߴ<EFBFBD><DFB4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP1OUTIFNUM (USBD_BASE+0X138) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>ӿںżĴ<C5BC><C4B4><EFBFBD> */
#define USBD_EP1OUTSTAT (USBD_BASE+0X13C) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP1OUTBMREQTYPE (USBD_BASE+0X140) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP1OUTBREQUEST (USBD_BASE+0X144) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP1OUTWVALUE (USBD_BASE+0X148) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ */
#define USBD_EP1OUTWINDX (USBD_BASE+0X14C) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP1OUTWLENGH (USBD_BASE+0X150) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򳤶<EFBFBD> */
#define USBD_EP1OUTSYNCHFRAME (USBD_BASE+0X154) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>֡<EFBFBD><D6A1> */
#define USBD_EP1INADDR (USBD_BASE+0X158) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>źͷ<C5BA><CDB7><EFBFBD> */
#define USBD_EP1INBMATTR (USBD_BASE+0X15C) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼĴ<CDBC><C4B4><EFBFBD> */
#define USBD_EP1INMAXPKTSIZE (USBD_BASE+0X160) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߴ<EFBFBD><DFB4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP1INIFNUM (USBD_BASE+0X164) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD>ӿںżĴ<C5BC><C4B4><EFBFBD> */
#define USBD_EP1INSTAT (USBD_BASE+0X168) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP1INBMREQTYPE (USBD_BASE+0X16C) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP1INBREQUEST (USBD_BASE+0X170) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP1INWVALUE (USBD_BASE+0X174) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ */
#define USBD_EP1INWINDEX (USBD_BASE+0X178) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP1INWLENGTH (USBD_BASE+0X17C) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򳤶<EFBFBD> */
#define USBD_EP1INSYNCHFRAME (USBD_BASE+0X180) /* <20>˵<EFBFBD>1<EFBFBD><31><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>֡<EFBFBD><D6A1> */
#define USBD_EP2OUTADDR (USBD_BASE+0X184) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>źͷ<C5BA><CDB7><EFBFBD> */
#define USBD_EP2OUTBMATTR (USBD_BASE+0X188) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼĴ<CDBC><C4B4><EFBFBD> */
#define USBD_EP2OUTMAXPKTSIZE (USBD_BASE+0X18C) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߴ<EFBFBD><DFB4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP2OUTIFNUM (USBD_BASE+0X190) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD>ӿںżĴ<C5BC><C4B4><EFBFBD> */
#define USBD_EP2OUTSTAT (USBD_BASE+0X194) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP2OUTBMREQTYPE (USBD_BASE+0X198) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP2OUTBREQUEST (USBD_BASE+0X19C) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP2OUTWVALUE (USBD_BASE+0X1A0) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ */
#define USBD_EP2OUTWINDEX (USBD_BASE+0X1A4) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP2OUTWLENGTH (USBD_BASE+0X1A8) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򳤶<EFBFBD> */
#define USBD_EP2OUTSYNCHFRAME (USBD_BASE+0X1AC) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>֡<EFBFBD><D6A1> */
#define USBD_EP2INADDR (USBD_BASE+0X1B0) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD>˵<EFBFBD><CBB5>źͷ<C5BA><CDB7><EFBFBD> */
#define USBD_EP2INBMATTR (USBD_BASE+0X1B4) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼĴ<CDBC><C4B4><EFBFBD> */
#define USBD_EP2INMAXPKTSIZE (USBD_BASE+0X1B8) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ߴ<EFBFBD><DFB4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP2INIFNUM (USBD_BASE+0X1BC) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD>ӿںżĴ<C5BC><C4B4><EFBFBD> */
#define USBD_EP2INSTAT (USBD_BASE+0X1C0) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define USBD_EP2INBMREQTYPE (USBD_BASE+0X1C4) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP2INBREQUEST (USBD_BASE+0X1C8) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP2INWVALUE (USBD_BASE+0X1CC) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ */
#define USBD_EP2INWINDEX (USBD_BASE+0X1D0) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> */
#define USBD_EP2INWLENGTH (USBD_BASE+0X1D4) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>SETUP<55><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򳤶<EFBFBD> */
#define USBD_EP2INSYNCHFRAME (USBD_BASE+0X1D8) /* <20>˵<EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD>֡<EFBFBD><D6A1> */
#define USBD_RXFIFO (USBD_BASE+0X200) /* <20><><EFBFBD><EFBFBD>FIFO */
#define USBD_TXFIFO (USBD_BASE+0X300) /* <20><><EFBFBD><EFBFBD>FIFO */
/*
* GPIOģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x1000F000
*/
#define GPIO_DBCLK_DIV (GPIO_BASE+0X000) /* ȥë<C8A5>̲<EFBFBD><CCB2><EFBFBD>ʱ<EFBFBD>ӷ<EFBFBD>Ƶ<EFBFBD><C6B5><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTA_DIR (GPIO_BASE+0X004) /* A<><41><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTA_SEL (GPIO_BASE+0X008) /* A<><41><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTA_INCTL (GPIO_BASE+0X00C) /* A<><41><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTA_INTRCTL (GPIO_BASE+0X010) /* A<><41><EFBFBD>˿<EFBFBD><CBBF>жϴ<D0B6><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTA_INTRCLR (GPIO_BASE+0X014) /* A<><41><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTA_DATA (GPIO_BASE+0X018) /* A<><41><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTB_DIR (GPIO_BASE+0X01C) /* B<><42><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTB_SEL (GPIO_BASE+0X020) /* B<><42><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTB_DATA (GPIO_BASE+0X024) /* B<><42><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTC_DIR (GPIO_BASE+0X028) /* C<><43><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTC_SEL (GPIO_BASE+0X02C) /* C<><43><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTC_DATA (GPIO_BASE+0X030) /* C<><43><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTD_DIR (GPIO_BASE+0X034) /* D<><44><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTD_SEL (GPIO_BASE+0X038) /* D<><44><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTD_SPECII (GPIO_BASE+0X03C) /* D<><44><EFBFBD>˿<EFBFBD>ר<EFBFBD><D7A8><EFBFBD><EFBFBD>;2ѡ<32><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTD_DATA (GPIO_BASE+0X040) /* D<><44><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTE_DIR (GPIO_BASE+0X044) /* E<><45><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTE_SEL (GPIO_BASE+0X048) /* E<><45><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTE_DATA (GPIO_BASE+0X04C) /* E<><45><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTF_DIR (GPIO_BASE+0X050) /* F<><46><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTF_SEL (GPIO_BASE+0X054) /* F<><46><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTF_INCTL (GPIO_BASE+0X058) /* F<><46><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTF_INTRCTL (GPIO_BASE+0X05C) /* F<><46><EFBFBD>˿<EFBFBD><CBBF>жϴ<D0B6><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTF_INTRCLR (GPIO_BASE+0X060) /* F<><46><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD>ж<EFBFBD><D0B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTF_DATA (GPIO_BASE+0X064) /* F<><46><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTG_DIR (GPIO_BASE+0X068) /* G<><47><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTG_SEL (GPIO_BASE+0X06C) /* G<><47><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTG_DATA (GPIO_BASE+0X070) /* G<><47><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTH_DIR (GPIO_BASE+0X07C) /* H<><48><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTH_SEL (GPIO_BASE+0X078) /* H<><48><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTH_DATA (GPIO_BASE+0X07C) /* H<><48><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTI_DIR (GPIO_BASE+0X080) /* I<><49><EFBFBD>˿<EFBFBD><CBBF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTI_SEL (GPIO_BASE+0X084) /* I<><49><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;ѡ<CDBE><D1A1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define GPIO_PORTI_DATA (GPIO_BASE+0X088) /* I<><49><EFBFBD>˿<EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>;<EFBFBD><CDBE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
/*
* EMIģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x11000000
*/
#define EMI_CSACONF (EMI_BASE+0X000) /* CSA<53><41><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_CSBCONF (EMI_BASE+0X004) /* CSB<53><42><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_CSCCONF (EMI_BASE+0X008) /* CSC<53><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_CSDCONF (EMI_BASE+0X00C) /* CSD<53><44><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_CSECONF (EMI_BASE+0X010) /* CSE<53><45><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_CSFCONF (EMI_BASE+0X014) /* CSF<53><46><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_SDCONF1 (EMI_BASE+0X018) /* SDRAMʱ<4D><CAB1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD>1 */
#define EMI_SDCONF2 (EMI_BASE+0X01C) /* SDRAMʱ<4D><CAB1><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD>2, SDRAM<41><4D>ʼ<EFBFBD><CABC><EFBFBD>õ<EFBFBD><C3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ */
#define EMI_REMAPCONF (EMI_BASE+0X020) /* Ƭѡ<C6AC>ռ<D5BC><E4BCB0>ַӳ<D6B7><D3B3>REMAP<41><50><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define EMI_NAND_ADDR1 (EMI_BASE+0X100) /* NAND FLASH<53>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>1 */
#define EMI_NAND_COM (EMI_BASE+0X104) /* NAND FLASH<53>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>ּĴ<D6BC><C4B4><EFBFBD> */
#define EMI_NAND_STA (EMI_BASE+0X10C) /* NAND FLASH<53><48>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define EMI_ERR_ADDR1 (EMI_BASE+0X110) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>1 */
#define EMI_ERR_ADDR2 (EMI_BASE+0X114) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>2 */
#define EMI_NAND_CONF1 (EMI_BASE+0X118) /* NAND FLASH<53><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1 */
#define EMI_NAND_INTR (EMI_BASE+0X11C) /* NAND FLASH<53>жϼĴ<CFBC><C4B4><EFBFBD> */
#define EMI_NAND_ECC (EMI_BASE+0X120) /* ECCУ<43><D0A3><EFBFBD><EFBFBD><EFBFBD>ɼĴ<C9BC><C4B4><EFBFBD> */
#define EMI_NAND_IDLE (EMI_BASE+0X124) /* NAND FLASH<53><48><EFBFBD>мĴ<D0BC><C4B4><EFBFBD> */
#define EMI_NAND_CONF2 (EMI_BASE+0X128) /* NAND FLASH<53><48><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2 */
#define EMI_NAND_ADDR2 (EMI_BASE+0X12C) /* NAND FLASH<53>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD>2 */
#define EMI_NAND_DATA (EMI_BASE+0X200) /* NAND FLASH<53><48><EFBFBD><EFBFBD><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
/*
* DMACģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x11001000
*/
#define DMAC_INTSTATUS (DMAC_BASE+0X020) /* DAMC<4D>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD> */
#define DMAC_INTTCSTATUS (DMAC_BASE+0X050) /* DMAC<41><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_INTTCCLEAR (DMAC_BASE+0X060) /* DMAC<41><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_INTERRORSTATUS (DMAC_BASE+0X080) /* DMAC<41><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_INTINTERRCLR (DMAC_BASE+0X090) /* DMAC<41><43><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>״̬<D7B4><CCAC><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_ENBLDCHNS (DMAC_BASE+0X0B0) /* DMACͨ<43><CDA8>ʹ<EFBFBD><CAB9>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C0SRCADDR (DMAC_BASE+0X000) /* DMAC<41><43><30><D4B4>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C0DESTADD (DMAC_BASE+0X004) /* DMAC<41><43>0Ŀ<30>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C0CONTROL (DMAC_BASE+0X00C) /* DMAC<41><43>0<EFBFBD><30><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define DMAC_C0CONFIGURATION (DMAC_BASE+0X010) /* DMAC<41><43>0<EFBFBD><30><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define DMAC_C0DESCRIPTOR (DMAC_BASE+0X01C) /* DMAC<41><43>0<EFBFBD><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C1SRCADDR (DMAC_BASE+0X100) /* DMAC<41><43><31><D4B4>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C1DESTADDR (DMAC_BASE+0X104) /* DMAC<41><43>1Ŀ<31>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C1CONTROL (DMAC_BASE+0X10C) /* DMAC<41><43>1<EFBFBD><31><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define DMAC_C1CONFIGURATION (DMAC_BASE+0X110) /* DMAC<41><43>1<EFBFBD><31><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define DMAC_C1DESCRIPTOR (DMAC_BASE+0X114) /* DMAC<41><43>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C2SRCADDR (DMAC_BASE+0X200) /* DMAC<41><43><32><D4B4>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C2DESTADDR (DMAC_BASE+0X204) /* DMAC<41><43>2Ŀ<32>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C2CONTROL (DMAC_BASE+0X20C) /* DMAC<41><43>2<EFBFBD><32><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define DMAC_C2CONFIGURATION (DMAC_BASE+0X210) /* DMAC<41><43>2<EFBFBD><32><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define DMAC_C2DESCRIPTOR (DMAC_BASE+0X214) /* DMAC<41><43>2<EFBFBD><32><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C3SRCADDR (DMAC_BASE+0X300) /* DMAC<41><43><33><D4B4>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C3DESTADDR (DMAC_BASE+0X304) /* DMAC<41><43>3Ŀ<33>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C3CONTROL (DMAC_BASE+0X30C) /* DMAC<41><43>3<EFBFBD><33><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define DMAC_C3CONFIGURATION (DMAC_BASE+0X310) /* DMAC<41><43>3<EFBFBD><33><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define DMAC_C3DESCRIPTOR (DMAC_BASE+0X314) /* DMAC<41><43>3<EFBFBD><33><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C4SRCADDR (DMAC_BASE+0X400) /* DMAC<41><43><34><D4B4>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C4DESTADDR (DMAC_BASE+0X404) /* DMAC<41><43>4Ŀ<34>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C4CONTROL (DMAC_BASE+0X40C) /* DMAC<41><43>4<EFBFBD><34><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define DMAC_C4CONFIGURATION (DMAC_BASE+0X410) /* DMAC<41><43>4<EFBFBD><34><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define DMAC_C4DESCRIPTOR (DMAC_BASE+0X414) /* DMAC<41><43>4<EFBFBD><34><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C5SRCADDR (DMAC_BASE+0X500) /* DMAC<41><43><35><D4B4>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C5DESTADDR (DMAC_BASE+0X504) /* DMAC<41><43>5Ŀ<35>ĵ<EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define DMAC_C5CONTROL (DMAC_BASE+0X50C) /* DMAC<41><43>5<EFBFBD><35><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define DMAC_C5CONFIGURATION (DMAC_BASE+0X510) /* DMAC<41><43>5<EFBFBD><35><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define DMAC_C5DESCRIPTOR (DMAC_BASE+0X514) /* DMAC<41><43>5<EFBFBD><35><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
/*
* LCDCģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x11002000
*/
#define LCDC_SSA (LCDC_BASE+0X000) /* <20><>Ļ<EFBFBD><C4BB>ʼ<EFBFBD><CABC>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define LCDC_SIZE (LCDC_BASE+0X004) /* <20><>Ļ<EFBFBD>ߴ<EFBFBD><DFB4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define LCDC_PCR (LCDC_BASE+0X008) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define LCDC_HCR (LCDC_BASE+0X00C) /* ˮƽ<CBAE><C6BD><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define LCDC_VCR (LCDC_BASE+0X010) /* <20><>ֱ<EFBFBD><D6B1><EFBFBD>üĴ<C3BC><C4B4><EFBFBD> */
#define LCDC_PWMR (LCDC_BASE+0X014) /* PWM<57>Աȶȿ<C8B6><C8BF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define LCDC_LECR (LCDC_BASE+0X018) /* ʹ<>ܿ<EFBFBD><DCBF>ƼĴ<C6BC><C4B4><EFBFBD> */
#define LCDC_DMACR (LCDC_BASE+0X01C) /* DMA<4D><41><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define LCDC_LCDISREN (LCDC_BASE+0X020) /* <20>ж<EFBFBD>ʹ<EFBFBD>ܼĴ<DCBC><C4B4><EFBFBD> */
#define LCDC_LCDISR (LCDC_BASE+0X024) /* <20>ж<EFBFBD>״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define LCDC_LGPMR (LCDC_BASE+0X040) /* <20>Ҷȵ<D2B6>ɫӳ<C9AB><D3B3><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD> (16<31><36>32bit<69>Ĵ<EFBFBD><C4B4><EFBFBD>) */
/*
* MACģ<EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD>ַ: 0x11003000
*/
#define MAC_CTRL (MAC_BASE+0X000) /* MAC<41><43><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define MAC_INTSRC (MAC_BASE+0X004) /* MAC<41>ж<EFBFBD>Դ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_INTMASK (MAC_BASE+0X008) /* MAC<41>ж<EFBFBD><D0B6><EFBFBD><EFBFBD>μĴ<CEBC><C4B4><EFBFBD> */
#define MAC_IPGT (MAC_BASE+0X00C) /* <20><><EFBFBD><EFBFBD>֡<EFBFBD><D6A1><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_IPGR1 (MAC_BASE+0X010) /* <20>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define MAC_IPGR2 (MAC_BASE+0X014) /* <20>ȴ<EFBFBD><C8B4><EFBFBD><EFBFBD>ڼĴ<DABC><C4B4><EFBFBD> */
#define MAC_PACKETLEN (MAC_BASE+0X018) /* ֡<><D6A1><EFBFBD>ȼĴ<C8BC><C4B4><EFBFBD> */
#define MAC_COLLCONF (MAC_BASE+0X01C) /* <20><>ײ<EFBFBD>ط<EFBFBD><D8B7>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_TXBD_NUM (MAC_BASE+0X020) /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_FLOWCTRL (MAC_BASE+0X024) /* <20><><EFBFBD>ؼĴ<D8BC><C4B4><EFBFBD> */
#define MAC_MII_CTRL (MAC_BASE+0X028) /* PHY<48><59><EFBFBD>ƼĴ<C6BC><C4B4><EFBFBD> */
#define MAC_MII_CMD (MAC_BASE+0X02C) /* PHY<48><59><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_MII_ADDRESS (MAC_BASE+0X030) /* PHY<48><59>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_MII_TXDATA (MAC_BASE+0X034) /* PHYд<59><D0B4><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define MAC_MII_RXDATA (MAC_BASE+0X038) /* PHY<48><59><EFBFBD><EFBFBD><EFBFBD>ݼĴ<DDBC><C4B4><EFBFBD> */
#define MAC_MII_STATUS (MAC_BASE+0X03C) /* PHY״̬<D7B4>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_ADDR0 (MAC_BASE+0X040) /* MAC<41><43>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_ADDR1 (MAC_BASE+0X044) /* MAC<41><43>ַ<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_HASH0 (MAC_BASE+0X048) /* MAC HASH<53>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_HASH1 (MAC_BASE+0X04C) /* MAC HASH<53>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_TXPAUSE (MAC_BASE+0X050) /* MAC<41><43><EFBFBD><EFBFBD>֡<EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD> */
#define MAC_TX_BD (MAC_BASE+0X400)
#define MAC_RX_BD (MAC_BASE+0X600)
/*
**************************************
* Error Codes:
* IF SUCCESS RETURN 0, ELSE RETURN OTHER ERROR CODE,
* parameter error return (-33)/E_PAR,
* hardware error reture (-99)/E_HA
**************************************
*/
#define E_OK 0 /* Normal completion */
#define E_SYS (-5) /* System error */
#define E_NOMEM (-10) /* Insufficient memory */
#define E_NOSPT (-17) /* Feature not supported */
#define E_INOSPT (-18) /* Feature not supported by ITRON/FILE specification */
#define E_RSFN (-20) /* Reserved function code number */
#define E_RSATR (-24) /* Reserved attribute */
#define E_PAR (-33) /* Parameter error */
#define E_ID (-35) /* Invalid ID number */
#define E_NOEXS (-52) /* Object does not exist */
#define E_OBJ (-63) /* Invalid object state */
#define E_MACV (-65) /* Memory access disabled or memory access violation */
#define E_OACV (-66) /* Object access violation */
#define E_CTX (-69) /* Context error */
#define E_QOVR (-73) /* Queuing or nesting overflow */
#define E_DLT (-81) /* Object being waited for was deleted */
#define E_TMOUT (-85) /* Polling failure or timeout exceeded */
#define E_RLWAI (-86) /* WAIT state was forcibly released */
#define E_HA (-99) /* HARD WARE ERROR */
/*
**************************************
* PMU ģ<EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>
**************************************
*/
#define CLK_SGPT (1 << 16)
#define CLK_SI2S (1 << 15)
#define CLK_SSMC (1 << 14)
#define CLK_SMAC (1 << 13)
#define CLK_SUSB (1 << 12)
#define CLK_SUART3 (1 << 11)
#define CLK_SUART2 (1 << 10)
#define CLK_SUART1 (1 << 9)
#define CLK_SUART0 (1 << 8)
#define CLK_SSSI (1 << 7)
#define CLK_SAC97 (1 << 6)
#define CLK_SMMCSD (1 << 5)
#define CLK_SEMI (1 << 4)
#define CLK_SDMAC (1 << 3)
#define CLK_SPWM (1 << 2)
#define CLK_SLCDC (1 << 1)
#define CLK_SESRAM (1)
/*Interrupt Sources*/
#define INTSRC_RTC 31
#define INTSRC_DMAC 30
#define INTSRC_EMI 29
#define INTSRC_MAC 28
#define INTSRC_TIMER1 27
#define INTSRC_TIMER2 26
#define INTSRC_TIMER3 25
#define INTSRC_UART0 24
#define INTSRC_UART1 23
#define INTSRC_UART2 22
#define INTSRC_UART3 21
#define INTSRC_PWM 20
#define INTSRC_LCDC 19
#define INTSRC_I2S 18
#define INTSRC_SSI 17
#define INTSRC_USB 15
#define INTSRC_SMC0 14
#define INTSRC_SMC1 13
#define INTSRC_SDIO 12
#define INTSRC_EXINT10 11
#define INTSRC_EXINT9 10
#define INTSRC_EXINT8 9
#define INTSRC_EXINT7 8
#define INTSRC_EXINT6 7
#define INTSRC_EXINT5 6
#define INTSRC_EXINT4 5
#define INTSRC_EXINT3 4
#define INTSRC_EXINT2 3
#define INTSRC_EXINT1 2
#define INTSRC_EXINT0 1
#define INTSRC_NULL 0
/*Sereral useful macros*/
#define set_plevel(plevel) *(RP)INTC_IPLR = plevel //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͨ<EFBFBD>жϵ<D0B6><CFB5><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>ޣ<EFBFBD>ֻ<EFBFBD><D6BB><EFBFBD><EFBFBD><EFBFBD>ȼ<EFBFBD><C8BC><EFBFBD><EFBFBD>ڴ<EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD>жϲ<D0B6><CFB2><EFBFBD>ͨ<EFBFBD><CDA8>
#define set_int_force(intnum) *(RP)INTC_IFR = (1 << intnum) //<2F><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǿ<EFBFBD>Ƹ<EFBFBD>λ<EFBFBD><CEBB>Ӧ<EFBFBD><D3A6><EFBFBD>ж<EFBFBD>Դ<EFBFBD><D4B4><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6>ź<EFBFBD>
#define enable_irq(intnum) *(RP)INTC_IER |= (1 << intnum) //<2F><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>Դ<EFBFBD><D4B4>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define disable_irq( intnum) *(RP)INTC_IER &= ~(1<< intnum) //<2F><>0<EFBFBD>󣬲<EFBFBD><F3A3ACB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>Դ<EFBFBD><D4B4>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define mask_irq(intnum) *(RP)INTC_IMR |= (1 << intnum) //<2F><>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ζ<EFBFBD>Ӧ<EFBFBD><D3A6>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define unmask_irq(intnum) *(RP)INTC_IMR &= ~(1 << intnum) //<2F><>0<EFBFBD><30><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define mask_all_irq() *(RP)INTC_IMR = 0xFFFFFFFF //<2F><><EFBFBD>ζ<EFBFBD>Ӧ<EFBFBD><D3A6>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define unmask_all_irq() *(RP)INTC_IMR = 0x00000000 //ͨ<><CDA8><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define enable_all_irq() *(RP)INTC_IER = 0XFFFFFFFF //<2F><><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>Դ<EFBFBD><D4B4>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define disable_all_irq() *(RP)INTC_IER = 0X00000000 //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD>Դ<EFBFBD><D4B4>IRQ <20>ж<EFBFBD><D0B6>ź<EFBFBD>
#define InitInt() do{mask_all_irq(); enable_all_irq();}while(0)
/*
**************************************
* <EFBFBD><EFBFBD><EFBFBD>г<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD>Typedef
**************************************
*/
typedef char S8; /* signed 8-bit integer */
typedef short S16; /* signed 16-bit integer */
typedef long S32; /* signed 32-bit integer */
typedef unsigned char U8; /* unsigned 8-bit integer */
typedef unsigned short U16; /* unsigned 16-bit integer */
typedef unsigned long U32; /* unsigned 32-bit integer */
typedef volatile U32 * RP;
typedef volatile U16 * RP16;
typedef volatile U8 * RP8;
typedef void *VP; /* pointer to an unpredictable data type */
typedef void (*FP)(); /* program start address */
#ifndef _BOOL_TYPE_
#define _BOOL_TYPE_
typedef int BOOL; /* Boolean value. TRUE (1) or FALSE (0). */
#endif
typedef int ER; /* Error code. A signed integer. */
/**
* IO definitions
*
* define access restrictions to peripheral registers
*/
#define __I volatile const /*!< defines 'read only' permissions */
#define __O volatile /*!< defines 'write only' permissions */
#define __IO volatile /*!< defines 'read / write' permissions */
#define __iomem volatile
/*Macros for debug*/
#define EOUT(fmt,...) \
do \
{ \
rt_kprintf("EOUT:(%s:%i) ",__FILE__,__LINE__); \
rt_kprintf(fmt,##__VA_ARGS__); \
}while(0)
#define RT_DEBUG
#ifdef RT_DEBUG
#define DBOUT(fmt,...) \
do \
{ \
rt_kprintf("DBOUT:(%s:%i) ",__FILE__,__LINE__); \
rt_kprintf(fmt,##__VA_ARGS__); \
}while(0)
#else
#define DBOUT(fmt,...) \
do{}while(0)
#endif
#ifdef RT_DEBUG
#define ASSERT(arg) \
if((arg) == 0) \
{ \
while(1) \
{ \
rt_kprintf("have a assert failure\n"); \
} \
}
#else
#define ASSERT(arg) \
do \
{ \
}while(0)
#endif
#define write_reg(reg,value) \
do \
{ \
*(RP)(reg) = value; \
}while(0)
#define read_reg(reg) (*(RP)reg)
struct rt_hw_register
{
rt_uint32_t r0;
rt_uint32_t r1;
rt_uint32_t r2;
rt_uint32_t r3;
rt_uint32_t r4;
rt_uint32_t r5;
rt_uint32_t r6;
rt_uint32_t r7;
rt_uint32_t r8;
rt_uint32_t r9;
rt_uint32_t r10;
rt_uint32_t fp;
rt_uint32_t ip;
rt_uint32_t sp;
rt_uint32_t lr;
rt_uint32_t pc;
rt_uint32_t cpsr;
rt_uint32_t ORIG_r0;
};
/*@}*/
#endif