emif.h

来自「CHP 2 - Real-Time Digital Signal Process」· C头文件 代码 · 共 31 行

H
31
字号
// 
//  Project: Experiment 2.10.8 Use DMA - Chapter 2 
//  File name: emif.h   
//
//  Description: This is the C header file for dma experiment
//
//  For the book "Real Time Digital Signal Processing: 
//                Implementation and Application, 2nd Ed"
//                By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
//                Publisher: John Wiley and Sons, Ltd
//


#define EMIF_BASE  0x0800
#define EGCR    (ioport volatile unsigned short*)(EMIF_BASE+0x0)
#define EMI_RST (ioport volatile unsigned short*)(EMIF_BASE+0x01)
#define EMI_BE  (ioport volatile unsigned short*)(EMIF_BASE+0x02)
#define CE0_1   (ioport volatile unsigned short*)(EMIF_BASE+0x03)
#define CE0_2   (ioport volatile unsigned short*)(EMIF_BASE+0x04)
#define CE0_3   (ioport volatile unsigned short*)(EMIF_BASE+0x05)
#define CE1_1   (ioport volatile unsigned short*)(EMIF_BASE+0x06)
#define CE1_2   (ioport volatile unsigned short*)(EMIF_BASE+0x07)
#define CE1_3   (ioport volatile unsigned short*)(EMIF_BASE+0x08)
#define SDC1    (ioport volatile unsigned short*)(EMIF_BASE+0x0F)
#define SDPER   (ioport volatile unsigned short*)(EMIF_BASE+0x10)
#define SDCNT   (ioport volatile unsigned short*)(EMIF_BASE+0x11)
#define INIT    (ioport volatile unsigned short*)(EMIF_BASE+0x12)
#define SDC2    (ioport volatile unsigned short*)(EMIF_BASE+0x13)

extern void initEMIF(void);

⌨️ 快捷键说明

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