ext-board-reva.h
来自「sst flash的读写程序的编写 完整教程和实例程序和几个实用小工具」· C头文件 代码 · 共 43 行
H
43 行
//define the extend board source
//must be the same with CS6 in init.c
#define ExtBoardBase0 0x66000000
#define PtrAdcControlP (ExtBoardBase0+((0x00)<<17))
#define PtrAdcResultP (ExtBoardBase0+((0x00)<<17))
#define PtrAdcStatusP (ExtBoardBase0+((0x01)<<17))
#define PtrSpiWr0P (ExtBoardBase0+((0x02)<<17))
#define PtrSpiRdP (ExtBoardBase0+((0x02)<<17))
#define PtrSpiWr1P (ExtBoardBase0+((0x03)<<17))
#define PtrFpgaOutP (ExtBoardBase0+((0x04)<<17))
#define PtrDacAP (ExtBoardBase0+((0x06)<<17))
#define PtrDacBP (ExtBoardBase0+((0x07)<<17))
#define PtrDigiLowOutP (ExtBoardBase0+((0x08)<<17))
#define PtrDigiLowInP (ExtBoardBase0+((0x08)<<17))
#define PtrPioWrP (ExtBoardBase0+((0x09)<<17))
#define PtrPioRdP (ExtBoardBase0+((0x09)<<17))
#define PtrClearIntP (ExtBoardBase0+((0x0A)<<17))
#define PtrConfigIntP (ExtBoardBase0+((0x0B)<<17))
struct ExtBoardRevA
{
unsigned long *AdcControlP;
unsigned long *AdcResultP;
unsigned long *AdcStatusP;
unsigned long *SpiWr0P;
unsigned long *SpiWr1P;
unsigned long *SpiRdP;
unsigned long *FpgaOutP;
unsigned long *DacAP;
unsigned long *DacBP;
unsigned long *DigiLowOutP;
unsigned long *DigiLowInP;
unsigned long *PioWrP;
unsigned long *PioRdP;
unsigned long *ClearIntP;
unsigned long *ConfigIntP;
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?