⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ide.h

📁 开发环境ADSP6++,EBF_561开发板所有源代码
💻 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 + -