fatfs学习笔记

    while (res==0&&filinfo1.fname[0]!=0)   //对于挑选文件类型很重要 
    {
        index=recdir.index;
        res=f_readdir(&recdir,&filinfo1);
        fn=(u8*)(*filinfo1.lfname?filinfo1.lfname:filinfo1.fname);
        rev=f_typetell(fn);
        if(rev==0x30)
        dex[i++]=index;    
    

    }

对于文件系统fatfs  f_open  f_close 两个函数成对出现 缺一不可 

FIL* fmp3;
    u16 br;  数据类型对上  否则溢出导致解码出错
    u8 res,rval;      
    u8 *databuf;                  
    u16 i=0;
    u8 key;



猜你喜欢

转载自blog.csdn.net/shenlong1356/article/details/79118553