?? 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 + -