ide.h
来自「开发环境ADSP6++,EBF_561开发板所有源代码」· C头文件 代码 · 共 30 行
H
30 行
#ifndef IDE
#define IDE
extern void IdeStandby(void);
extern void IdeIdle(void);
extern unsigned char IdeReadSector(unsigned char SectorNum,
unsigned short CylinderNum);
extern unsigned char IdeWriteSector(unsigned char SectorNum,
unsigned short CylinderNum);
/*IDE address**************************************************/
#define pDataPort (volatile unsigned char *)(0x2E000000 + (0x00<<1))
#define pPreComp (volatile unsigned char *)(0x2E000000 + (0x01<<1))
#define pSectorCount (volatile unsigned char *)(0x2E000000 + (0x02<<1))
#define pSectorNumber (volatile unsigned char *)(0x2E000000 + (0x03<<1))
#define pCylinderLow (volatile unsigned char *)(0x2E000000 + (0x04<<1))
#define pCylinderHigh (volatile unsigned char *)(0x2E000000 + (0x05<<1))
#define pDriveHead (volatile unsigned char *)(0x2E000000 + (0x06<<1))
#define pCommand (volatile unsigned char *)(0x2E000000 + (0x07<<1))
#define pStatus (volatile unsigned char *)(0x2E000000 + (0x07<<1))
#define pErrorReg (volatile unsigned char *)(0x2E000000 + (0x01<<1))
#else
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?