BF533对鼠标测试功能主函数
****************************************************************************/#include"ccblkfn.h"#include#include"dm_bf5xx.h"int_tcmdok=0;externunsignedcharsendok;//接收成功标志EX_INTERRUPT_HANDLER(FlagA_ISR_M);/*************
发表于 6/8/2012 2:33:03 PM
阅读(1523)
BF对鼠标函数的判断
*名称:getcode*功能:获取键值*入口参数:无*出口参数:无****************************************************************************/int_tgetcode(void)//返回0则无操作返回1则说明得到响应返回2则说明得到数据{if(newflag==1){if(ResOrDat==1)//为响应数
发表于 6/8/2012 2:32:00 PM
阅读(1522)
BF533鼠标的初始化函数
****************************************************************************/#include"dm_bf5xx.h"structmousedat{int_tdat;int_tnewly;}mousedat;structmousedatmdat1,mdat2,mdat3;int_tRecNewDat;//接收到新的数据int_tResOrDat;//响应或是数据
发表于 6/8/2012 2:31:01 PM
阅读(1367)
BF533读取鼠标数据的中断函数
****************************************************************************/#include"cdefBF533.h"#include"dm_bf5xx.h"int_tmkey;staticuint8_tTime;//CLK计数staticuint8_tparity;//奇偶校验位externint_tWR;//中断程序中是发送子程
发表于 6/8/2012 2:29:16 PM
阅读(1502)
PS2键盘的键值判断
****************************************************************************/#include"dm_bf5xx.h"#include"dm_types.h"#include"dm_ps2_codes.h"#include/****************************************************************
发表于 6/8/2012 2:26:32 PM
阅读(2258)
PS2键盘在ADSP-BF533下的接口和中断初始化
/*****************************************************************************名称:Init_KEYFlags*功能:初始化键盘IO标志*入口参数:无*出口参数:无****************************************************************************/staticvoidInit_KEYFla
发表于 6/8/2012 2:25:12 PM
阅读(1857)
BF533实现了PS2键盘的中断函数
#include"dm_bf5xx.h"#include"dm_types.h"volatileuint8_tkey;volatileuint8_tkey2;volatileuint8_tkey3;volatileuint8_tkey_up;staticint_ttime;/*****************************************************************************名称:EX_
发表于 5/4/2012 8:33:11 AM
阅读(1565)
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
发表于 5/4/2012 8:31:06 AM
阅读(1686)
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*功能:按
发表于 5/4/2012 8:30:20 AM
阅读(1850)
BF533实现CF卡的各种状态请求功能
#include"dm_bf5xx.h"/*****************************************************************************名称:CF_Soft_Reset*功能:复位CF卡*入口参数:无*出口参数:无****************************************************************************
发表于 5/4/2012 8:29:22 AM
阅读(1444)
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_
发表于 5/2/2012 9:26:38 PM
阅读(2024)
BF533对NandFlash 底层读写功能的实现
#include"stdio.h"#include"ccblkfn.h"#include"sysreg.h"#include"dm_bf5xx.h"uint8_tTest_Data_Table[];int32_tbytecount;/*****************************************************************************名称:Init
发表于 5/2/2012 9:25:25 PM
阅读(1942)
电机控制功能主函数
#include"dm_bf5xx.h"#include"dm_types.h"#defineSTEP_MOTOR_CMD1#defineDC_MOTOR_CMD2/*****************************************************************************名称:Disable_Motor*功能:电机控制测试主函数*入口参数:无*出口参
发表于 5/2/2012 9:21:48 PM
阅读(2184)
BF533对电机控制的初始化
#include"dm_bf5xx.h"#include"dm_types.h"/*****************************************************************************名称:Disable_Motor*功能:电机控制端不允许*入口参数:无*出口参数:无**************************************
发表于 4/8/2012 9:23:07 AM
阅读(1471)
BF533对键盘功能实现的主函数
#include"dm_bf5xx.h"#include"dm_types.h"/*****************************************************************************名称:main*功能:KeyBoard测试函数*入口参数:无*出口参数:无***********************************************
发表于 4/8/2012 9:18:03 AM
阅读(1466)