⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sep4020.h

📁 东南大学开发ARM7芯片UART模块测试代码
💻 H
📖 第 1 页 / 共 3 页
字号:

#define PWM1_CTRL                 (PWM_BASE+0X000)        /* PWM1控制寄存器 */
#define PWM1_DIV                  (PWM_BASE+0X004)        /* PWM1分频寄存器 */
#define PWM1_PERIOD               (PWM_BASE+0X008)        /* PWM1周期寄存器 */
#define PWM1_DATA                 (PWM_BASE+0X00C)        /* PWM1数据寄存器 */
#define PWM1_CNT                  (PWM_BASE+0X010)        /* PWM1计数寄存器 */
#define PWM1_STATUS               (PWM_BASE+0X014)        /* PWM1状态寄存器 */
#define PWM2_CTRL                 (PWM_BASE+0X020)        /* PWM2控制寄存器 */
#define PWM2_DIV                  (PWM_BASE+0X024)        /* PWM2分频寄存器 */
#define PWM2_PERIOD               (PWM_BASE+0X028)        /* PWM2周期寄存器 */
#define PWM2_DATA                 (PWM_BASE+0X02C)        /* PWM2数据寄存器 */
#define PWM2_CNT                  (PWM_BASE+0X030)        /* PWM2计数寄存器 */
#define PWM2_STATUS               (PWM_BASE+0X034)        /* PWM2状态寄存器 */
#define PWM3_CTRL                 (PWM_BASE+0X040)        /* PWM3控制寄存器 */
#define PWM3_DIV                  (PWM_BASE+0X044)        /* PWM3分频寄存器 */
#define PWM3_PERIOD               (PWM_BASE+0X048)        /* PWM3周期寄存器 */
#define PWM3_DATA                 (PWM_BASE+0X04C)        /* PWM3数据寄存器 */
#define PWM3_CNT                  (PWM_BASE+0X050)        /* PWM3计数寄存器 */
#define PWM3_STATUS               (PWM_BASE+0X054)        /* PWM3状态寄存器 */
#define PWM4_CTRL                 (PWM_BASE+0X060)        /* PWM4控制寄存器 */
#define PWM4_DIV                  (PWM_BASE+0X064)        /* PWM4分频寄存器 */
#define PWM4_PERIOD               (PWM_BASE+0X068)        /* PWM4周期寄存器 */
#define PWM4_DATA                 (PWM_BASE+0X06C)        /* PWM4数据寄存器 */
#define PWM4_CNT                  (PWM_BASE+0X070)        /* PWM4计数寄存器 */
#define PWM4_STATUS               (PWM_BASE+0X074)        /* PWM4状态寄存器 */
#define PWM_INTMASK               (PWM_BASE+0X080)        /* PWM中断屏蔽寄存器 */
#define PWM_INT                   (PWM_BASE+0X084)        /* PWM中断寄存器 */
#define PWM_ENABLE                (PWM_BASE+0X088)        /* PWM使能寄存器 */


/*
 *  UART0模块
 *  基址: 0x10005000
 */

#define UART0_DLBL                (UART0_BASE+0X000)      /* 波特率设置低八位寄存器 */
#define UART0_RXFIFO              (UART0_BASE+0X000)      /* 接收FIFO */
#define UART0_TXFIFO              (UART0_BASE+0X000)      /* 发送FIFO */
#define UART0_DLBH                (UART0_BASE+0X004)      /* 波特率设置高八位寄存器 */
#define UART0_IER                 (UART0_BASE+0X004)      /* 中断使能寄存器 */
#define UART0_IIR                 (UART0_BASE+0X008)      /* 中断识别寄存器 */
#define UART0_FCR                 (UART0_BASE+0X008)      /* FIFO控制寄存器 */
#define UART0_LCR                 (UART0_BASE+0X00C)      /* 行控制寄存器 */
#define UART0_MCR                 (UART0_BASE+0X010)      /* Modem控制寄存器 */
#define UART0_LSR                 (UART0_BASE+0X014)      /* 行状态寄存器 */
#define UART0_MSR                 (UART0_BASE+0X018)      /* Modem状态寄存器 */


/*
 *  UART1模块
 *  基址: 0x10006000
 */

#define UART1_DLBL                (UART1_BASE+0X000)      /* 波特率设置低八位寄存器 */
#define UART1_RXFIFO              (UART1_BASE+0X000)      /* 接收FIFO */
#define UART1_TXFIFO              (UART1_BASE+0X000)      /* 发送FIFO */
#define UART1_DLBH                (UART1_BASE+0X004)      /* 波特率设置高八位寄存器 */
#define UART1_IER                 (UART1_BASE+0X004)      /* 中断使能寄存器 */
#define UART1_IIR                 (UART1_BASE+0X008)      /* 中断识别寄存器 */
#define UART1_FCR                 (UART1_BASE+0X008)      /* FIFO控制寄存器 */
#define UART1_LCR                 (UART1_BASE+0X00C)      /* 行控制寄存器 */
#define UART1_MCR                 (UART1_BASE+0X010)      /* Modem控制寄存器 */
#define UART1_LSR                 (UART1_BASE+0X014)      /* 行状态寄存器 */
#define UART1_MSR                 (UART1_BASE+0X018)      /* Modem状态寄存器 */


/*
 *  UART2模块
 *  基址: 0x10007000
 */

#define UART2_DLBL                (UART2_BASE+0X000)      /* 波特率设置低八位寄存器 */
#define UART2_RXFIFO              (UART2_BASE+0X000)      /* 接收FIFO */
#define UART2_TXFIFO              (UART2_BASE+0X000)      /* 发送FIFO */
#define UART2_DLBH                (UART2_BASE+0X004)      /* 波特率设置高八位寄存器 */
#define UART2_IER                 (UART2_BASE+0X004)      /* 中断使能寄存器 */
#define UART2_IIR                 (UART2_BASE+0X008)      /* 中断识别寄存器 */
#define UART2_FCR                 (UART2_BASE+0X008)      /* FIFO控制寄存器 */
#define UART2_LCR                 (UART2_BASE+0X00C)      /* 行控制寄存器 */
#define UART2_MCR                 (UART2_BASE+0X010)      /* Modem控制寄存器 */
#define UART2_LSR                 (UART2_BASE+0X014)      /* 行状态寄存器 */
#define UART2_MSR                 (UART2_BASE+0X018)      /* Modem状态寄存器 */


/*
 *  UART3模块
 *  基址: 0x10008000
 */

#define UART3_DLBL                (UART3_BASE+0X000)      /* 波特率设置低八位寄存器 */
#define UART3_RXFIFO              (UART3_BASE+0X000)      /* 接收FIFO */
#define UART3_TXFIFO              (UART3_BASE+0X000)      /* 发送FIFO */
#define UART3_DLBH                (UART3_BASE+0X004)      /* 波特率设置高八位寄存器 */
#define UART3_IER                 (UART3_BASE+0X004)      /* 中断使能寄存器 */
#define UART3_IIR                 (UART3_BASE+0X008)      /* 中断识别寄存器 */
#define UART3_FCR                 (UART3_BASE+0X008)      /* FIFO控制寄存器 */
#define UART3_LCR                 (UART3_BASE+0X00C)      /* 行控制寄存器 */
#define UART3_MCR                 (UART3_BASE+0X010)      /* Modem控制寄存器 */
#define UART3_LSR                 (UART3_BASE+0X014)      /* 行状态寄存器 */
#define UART3_MSR                 (UART3_BASE+0X018)      /* Modem状态寄存器 */


/*
 *  SSI模块
 *  基址: 0x10009000
 */

#define SSI_CONTROL0              (SSI_BASE+0X000)        /* 控制寄存器0 */
#define SSI_CONTROL1              (SSI_BASE+0X004)        /* 控制寄存器1 */
#define SSI_SSIENR                (SSI_BASE+0X008)        /* SSI使能寄存器 */
#define SSI_MWCR                  (SSI_BASE+0X00C)        /* Microwire控制寄存器 */
#define SSI_SER                   (SSI_BASE+0X010)        /* 从设备使能寄存器 */
#define SSI_BAUDR                 (SSI_BASE+0X014)        /* 波特率设置寄存器 */
#define SSI_TXFTLR                (SSI_BASE+0X018)        /* 发送FIFO阈值寄存器 */
#define SSI_RXFTLR                (SSI_BASE+0X01C)        /* 接收FIFO阈值寄存器 */
#define SSI_TXFLR                 (SSI_BASE+0X020)        /* 发送FIFO状态寄存器 */
#define SSI_RXFLR                 (SSI_BASE+0X024)        /* 接收FIFO状态寄存器 */
#define SSI_SR                    (SSI_BASE+0X028)        /* 状态寄存器 */
#define SSI_IMR                   (SSI_BASE+0X02C)        /* 中断屏蔽寄存器 */
#define SSI_ISR                   (SSI_BASE+0X030)        /* 中断最终状态寄存器 */
#define SSI_RISR                  (SSI_BASE+0X034)        /* 中断原始状态寄存器 */
#define SSI_TXOICR                (SSI_BASE+0X038)        /* 发送FIFO上溢中断清除寄存器 */
#define SSI_RXOICR                (SSI_BASE+0X03C)        /* 接收FIFO上溢中断清除寄存器 */
#define SSI_RXUICR                (SSI_BASE+0X040)        /* 接收FIFO下溢中断清除寄存器 */
#define SSI_ICR                   (SSI_BASE+0X02C)        /* 中断清除寄存器 */
#define SSI_DMACR                 (SSI_BASE+0X04C)        /* DMA控制寄存器 */
#define SSI_DMATDLR               (SSI_BASE+0X050)        /* DMA发送状态寄存器 */
#define SSI_DMARDLR               (SSI_BASE+0X054)        /* DMA接收状态寄存器 */
#define SSI_DR                    (SSI_BASE+0X060)        /* 数据寄存器 */


/*
 *  I2S模块
 *  基址: 0x1000A000
 */

#define I2S_CTRL                  (I2S_BASE+0X000)        /* I2S控制寄存器 */
#define I2S_DATA                  (I2S_BASE+0X004)        /* I2S数据寄存器 */
#define I2S_INT                   (I2S_BASE+0X008)        /* I2S中断寄存器 */
#define I2S_STATUS                (I2S_BASE+0X00C)        /* I2S状态寄存器 */


/*
 *  GPIO模块
 *  基址: 0x1000B000
 */

#define GPIO_DBCLK_DIV            (GPIO_BASE+0X000)       /* 去毛刺采用时钟分频比配置寄存器 */
#define GPIO_PORTA_DIR            (GPIO_BASE+0X004)       /* A组端口输入输出方向配置寄存器 */
#define GPIO_PORTA_SEL            (GPIO_BASE+0X008)       /* A组端口通用用途选择配置寄存器 */
#define GPIO_PORTA_INCTL          (GPIO_BASE+0X00C)       /* A组端口通用用途输入时类型配置寄存器 */
#define GPIO_PORTA_INTRCTL        (GPIO_BASE+0X010)       /* A组端口中断触发类型配置寄存器 */
#define GPIO_PORTA_INTRCLR        (GPIO_BASE+0X014)       /* A组端口通用用途中断清除配置寄存器 */
#define GPIO_PORTA_DATA           (GPIO_BASE+0X018)       /* A组端口通用用途数据配置寄存器 */
#define GPIO_PORTB_DIR            (GPIO_BASE+0X01C)       /* B组端口输入输出方向配置寄存器 */
#define GPIO_PORTB_SEL            (GPIO_BASE+0X020)       /* B组端口通用用途选择配置寄存器 */
#define GPIO_PORTB_DATA           (GPIO_BASE+0X024)       /* B组端口通用用途数据配置寄存器 */
#define GPIO_PORTC_DIR            (GPIO_BASE+0X028)       /* C组端口输入输出方向配置寄存器 */
#define GPIO_PORTC_SEL            (GPIO_BASE+0X02C)       /* C组端口通用用途选择配置寄存器 */
#define GPIO_PORTC_DATA           (GPIO_BASE+0X030)       /* C组端口通用用途数据配置寄存器 */
#define GPIO_PORTD_DIR            (GPIO_BASE+0X034)       /* D组端口输入输出方向配置寄存器 */
#define GPIO_PORTD_SEL            (GPIO_BASE+0X038)       /* D组端口通用用途选择配置寄存器 */
#define GPIO_PORTD_SPECII         (GPIO_BASE+0X03C)       /* D组端口专用用途2选择配置寄存器 */
#define GPIO_PORTD_DATA           (GPIO_BASE+0X040)       /* D组端口通用用途数据配置寄存器 */
#define GPIO_PORTE_DIR            (GPIO_BASE+0X044)       /* E组端口输入输出方向配置寄存器 */
#define GPIO_PORTE_SEL            (GPIO_BASE+0X048)       /* E组端口通用用途选择配置寄存器 */
#define GPIO_PORTE_DATA           (GPIO_BASE+0X04C)       /* E组端口通用用途数据配置寄存器 */
#define GPIO_PORTF_DIR            (GPIO_BASE+0X050)       /* F组端口输入输出方向配置寄存器 */
#define GPIO_PORTF_SEL            (GPIO_BASE+0X054)       /* F组端口通用用途选择配置寄存器 */
#define GPIO_PORTF_INCTL          (GPIO_BASE+0X058)       /* F组端口通用用途输入时类型配置寄存器 */
#define GPIO_PORTF_INTRCTL        (GPIO_BASE+0X05C)       /* F组端口中断触发类型配置寄存器 */
#define GPIO_PORTF_INTRCLR        (GPIO_BASE+0X060)       /* F组端口通用用途中断清除配置寄存器 */
#define GPIO_PORTF_DATA           (GPIO_BASE+0X064)       /* F组端口通用用途数据配置寄存器 */
#define GPIO_PORTG_DIR            (GPIO_BASE+0X068)       /* G组端口输入输出方向配置寄存器 */
#define GPIO_PORTG_SEL            (GPIO_BASE+0X06C)       /* G组端口通用用途选择配置寄存器 */
#define GPIO_PORTG_DATA           (GPIO_BASE+0X070)       /* G组端口通用用途数据配置寄存器 */
#define GPIO_PORTH_DIR            (GPIO_BASE+0X07C)       /* H组端口输入输出方向配置寄存器 */
#define GPIO_PORTH_SEL            (GPIO_BASE+0X078)       /* H组端口通用用途选择配置寄存器 */
#define GPIO_PORTH_DATA           (GPIO_BASE+0X07C)       /* H组端口通用用途数据配置寄存器 */
#define GPIO_PORTI_DIR            (GPIO_BASE+0X080)       /* I组端口输入输出方向配置寄存器 */
#define GPIO_PORTI_SEL            (GPIO_BASE+0X084)       /* I组端口通用用途选择配置寄存器 */
#define GPIO_PORTI_DATA           (GPIO_BASE+0X088)       /* I组端口通用用途数据配置寄存器 */


/*
 *  SMC0模块
 *  基址: 0x1000C000
 */

#define SMC0_CTRL                 (SMC0_BASE+0X000)       /* SMC0控制寄存器 */
#define SMC0_INT                  (SMC0_BASE+0X004)       /* SMC0中断寄存器 */
#define SMC0_FD                   (SMC0_BASE+0X008)       /* SMC0基本单元时间寄存器 */
#define SMC0_CT                   (SMC0_BASE+0X00C)       /* SMC0字符传输时间寄存器 */
#define SMC0_BT                   (SMC0_BASE+0X010)       /* SMC0块传输时间寄存器 */


/*
 *  SMC1模块
 *  基址: 0x1000D000
 */

#define SMC1_CTRL                 (SMC1_BASE+0X000)       /* SMC1控制寄存器 */
#define SMC1_INT                  (SMC1_BASE+0X004)       /* SMC1中断寄存器 */
#define SMC1_FD                   (SMC1_BASE+0X008)       /* SMC1基本单元时间寄存器 */
#define SMC1_CT                   (SMC1_BASE+0X00C)       /* SMC1字符传输时间寄存器 */
#define SMC1_BT                   (SMC1_BASE+0X010)       /* SMC1块传输时间寄存器 */


/*
 *  USBD模块
 *  基址: 0x1000E000
 */

#define USBD_PROTOCOLINTR         (USBD_BASE+0X000)       /* USB协议中断寄存器 */
#define USBD_INTRMASK             (USBD_BASE+0X004)       /* USB中断屏蔽寄存器 */
#define USBD_INTRCTRL             (USBD_BASE+0X008)       /* USB中断类型控制寄存器 */
#define USBD_EPINFO               (USBD_BASE+0X00C)       /* USB活动端点状态寄存器 */
#define USBD_BCONFIGURATIONVALUE  (USBD_BASE+0X010)       /* SET_CCONFIGURATION记录 */
#define USBD_BMATTRIBUTES         (USBD_BASE+0X014)       /* 当前配置属性寄存器 */
#define USBD_DEVSPEED             (USBD_BASE+0X018)       /* 当前设备工作速度寄存器 */
#define USBD_FRAMENUMBER          (USBD_BASE+0X01C)       /* 记录当前SOF包内的帧号 */
#define USBD_EPTRANSACTIONS0      (USBD_BASE+0X020)       /* 记录下次要求的传输次数 */
#define USBD_EPTRANSACTIONS1      (USBD_BASE+0X024)       /* 记录下次要求的传输次数 */
#define USBD_APPIFUPDATE          (USBD_BASE+0X028)       /* 接口号快速更新寄存器 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -