欢迎来到天天文库
浏览记录
ID:51445292
大小:119.50 KB
页数:29页
时间:2020-03-24
《文件操作与WAV音频播放实验程序解析.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、//文件操作与WAV音频播放实验程序解析//头文件#include#include"inc/hw_memmap.h"#include"inc/hw_types.h"#include"driverlib/fpu.h"#include"driverlib/gpio.h"#include"driverlib/interrupt.h"#include"driverlib/rom.h"#include"driverlib/sysctl.h"#include"driverlib/systick.h"#in
2、clude"driverlib/pin_map.h"#include"driverlib/ssi.h"#include"grlib/grlib.h"#include"utils/cmdline.h"#include"utils/uartstdio.h"#include"fatfs/src/ff.h"#include"fatfs/src/diskio.h"#include"drivers/cfal96x64x16.h"#include"drivers/buttons.h"//********************
3、*********************************************************//Definesthesizeofthebuffersthatholdthepath,ortemporarydatafrom//theSDcard.Therearetwobuffersallocatedofthissize.Thebuffersize//mustbelargeenoughtoholdthelongestexpectedfullpathname,including//thefilena
4、me,andatrailingnullcharacter.//*****************************************************************************#definePATH_BUF_SIZE80//*****************************************************************************//Definesthesizeofthebufferthatholdsthecommandline
5、.//*****************************************************************************#defineCMD_BUF_SIZE64//*****************************************************************************//Thisbufferholdsthefullpathtothecurrentworkingdirectory.Initially//itisroot("/
6、").//*****************************************************************************staticcharg_cCwdBuf[PATH_BUF_SIZE]="/";//*****************************************************************************//Atemporarydatabufferusedwhenmanipulatingfilepaths,orreadi
7、ngdata//fromtheSDcard.//*****************************************************************************staticcharg_cTmpBuf[PATH_BUF_SIZE];//*****************************************************************************//Aflagtoindicatetheselectbuttonwaspressed./
8、/*****************************************************************************staticvolatileunsignedcharbSelectPressed=0;staticvolatileunsignedcharbUpPressed=0;staticvolatileunsignedcharb
此文档下载收益归作者所有