system.h

来自「用DSP BF533直接读写操作硬盘的源代码!源代码中有头文件指示了硬盘如何和B」· C头文件 代码 · 共 57 行

H
57
字号
#include "cdefBF533.h"
#include "ccblkfn.h"
#include "sys/exception.h"
#include "sysreg.h"
#include "string.h"

#define uchar   unsigned char
#define ushort  unsigned short
#define uint	unsigned int
#define ulong	unsigned long

#include "Cpld.h"
#include "GeneralFunc.h"
#include "Init.h"
#include "IDE.h"

#define Stop_S_Config	0x0009	//停止模式,无中断,32位传输模式,1维,启动
#define Stop_D_Config	0x000b

#define Stop_S_Config_16	0x0004	//停止模式,无中断,16位传输模式,1维,没有启动
#define Stop_D_Config_16	0x0006

#define Stop_S_Config_16_I	0x00a4	//停止模式,有中断,16位传输模式,1维,没有启动
#define Stop_D_Config_16_I	0x00a6

#define Array_S_Config 0x4709   //无中断,32位传输,1维
#define Array_D_Config 0x470b

#define Array_S_Config_1 0x47a9  //D0有中断,32位传输,1维
#define Array_D_Config_1 0x47ab


#define Array_S_Config_q 0x4309
#define Array_D_Config_q 0x430b

#define X_Count 0x40
#define X_Modify 0x4

#define Y_Count 0x8
#define Y_Modify 0x4




#define DelayValue 10000000		//?????
#define ShortDelayValue 10000










⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?