小磷光一

BF533对鼠标测试功能主函数

****************************************************************************/#include"ccblkfn.h"#include#include"dm_bf5xx.h"int_tcmdok=0;externunsignedcharsendok;//接收成功标志EX_INTERRUPT_HANDLER(FlagA_ISR_M);/*************

BF对鼠标函数的判断

*名称:getcode*功能:获取键值*入口参数:无*出口参数:无****************************************************************************/int_tgetcode(void)//返回0则无操作返回1则说明得到响应返回2则说明得到数据{if(newflag==1){if(ResOrDat==1)//为响应数

BF533鼠标的初始化函数

****************************************************************************/#include"dm_bf5xx.h"structmousedat{int_tdat;int_tnewly;}mousedat;structmousedatmdat1,mdat2,mdat3;int_tRecNewDat;//接收到新的数据int_tResOrDat;//响应或是数据

BF533读取鼠标数据的中断函数

****************************************************************************/#include"cdefBF533.h"#include"dm_bf5xx.h"int_tmkey;staticuint8_tTime;//CLK计数staticuint8_tparity;//奇偶校验位externint_tWR;//中断程序中是发送子程

PS2键盘的键值判断

****************************************************************************/#include"dm_bf5xx.h"#include"dm_types.h"#include"dm_ps2_codes.h"#include/****************************************************************

PS2键盘在ADSP-BF533下的接口和中断初始化

/*****************************************************************************名称:Init_KEYFlags*功能:初始化键盘IO标志*入口参数:无*出口参数:无****************************************************************************/staticvoidInit_KEYFla

BF533实现了PS2键盘的中断函数

#include"dm_bf5xx.h"#include"dm_types.h"volatileuint8_tkey;volatileuint8_tkey2;volatileuint8_tkey3;volatileuint8_tkey_up;staticint_ttime;/*****************************************************************************名称:EX_

BF533实现CF卡读写校验功能

#include"cdefBF533.h"#include"ccblkfn.h"#include#include"dm_bf5xx.h"#include"dm_cpu.h"#include"dm_types.h"volatileuint_tdecLow,decHigh;externint_tSanFileCont;uint16_tBoot_Sector[256];uint16_tW_S

BF533实现CF卡的读写扇区和设备检测等功能

#include"dm_bf5xx.h"#include"dm_types.h"uint16_tDBR_Buff[256];uint16_tDrive_Info[256];externuint16_tBoot_Sector[256];/*****************************************************************************名称:Read_Sector_CF*功能:按

BF533实现CF卡的各种状态请求功能

#include"dm_bf5xx.h"/*****************************************************************************名称:CF_Soft_Reset*功能:复位CF卡*入口参数:无*出口参数:无****************************************************************************

BF533对NandFlash的读写数据测试

#include"stdio.h"#include"ccblkfn.h"#include"sysreg.h"#include"dm_bf5xx.h"uint8_tVerify_Table[4096];uint8_tTest_Data_Table[4096];uint8_tRead_Table[4096];externint_tbytecount;uint_tBlockn_Address=0;uint16_

BF533对NandFlash 底层读写功能的实现

#include"stdio.h"#include"ccblkfn.h"#include"sysreg.h"#include"dm_bf5xx.h"uint8_tTest_Data_Table[];int32_tbytecount;/*****************************************************************************名称:Init

电机控制功能主函数

#include"dm_bf5xx.h"#include"dm_types.h"#defineSTEP_MOTOR_CMD1#defineDC_MOTOR_CMD2/*****************************************************************************名称:Disable_Motor*功能:电机控制测试主函数*入口参数:无*出口参

BF533对电机控制的初始化

#include"dm_bf5xx.h"#include"dm_types.h"/*****************************************************************************名称:Disable_Motor*功能:电机控制端不允许*入口参数:无*出口参数:无**************************************

BF533对键盘功能实现的主函数

#include"dm_bf5xx.h"#include"dm_types.h"/*****************************************************************************名称:main*功能:KeyBoard测试函数*入口参数:无*出口参数:无***********************************************