📄 ide.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -