![]()
If (i >= fs->n_rootdir) /* Report EOT when end of table */ If (!i || !dj->sect) /* Report EOT when index has reached 65535 */ * Directory handling - Move directory index next */įRESULT dir_next ( /* FR_OK:Succeeded, FR_NO_FILE:End of table */ If (_FS_FAT32 & !clst & fs->fs_type = FS_FAT32) /* Replace cluster# 0 with root cluster# if in FAT32 */ĭj->sect = clst ? clust2sect(clst) : fs->dirbase /* Current sector */ If (clst = 1 || clst >= fs->n_fatent) /* Check start cluster range */ * Directory handling - Rewind directory index */ĭIR *dj /* Pointer to directory object */ Return (DWORD)clst * fs->csize + fs->database If (clst >= (fs->n_fatent - 2)) return 0 /* Invalid cluster# */ *-*/ĭWORD clust2sect ( /* !=0: Sector number, 0: Failed - invalid cluster# */ĬLUST clst /* Cluster# to be converted */ Return 1 /* An error occured at the disk I/O layer */ Return (clst & 1) ? (wc > 4) : (wc & 0xFFF) If (disk_readp(buf+1, fs->fatbase + bc + 1, 0, 1)) break If (disk_readp(buf, fs->fatbase + bc, 511, 1)) break If (disk_readp(buf, fs->fatbase + bc, ofs, 2)) break #include "diskio.h" /* Declarations of low level disk I/O functions */ #include "pff.h" /* Petit FatFs configurations and declarations */ Fixed fails to open objects with DBCS character. Dec 07,'10 R0.02a Added some configuration options. #Iar error code expression cannot be forward code#Dec 14,'09 R0.02 Added multiple code page support. * Redistributions of source code must retain the above copyright notice. personal, non-profit or commercial use UNDER YOUR RESPONSIBILITY. You can use, modify and redistribute it for #Iar error code expression cannot be forward software#* The Petit FatFs module is a free software and there is NO WARRANTY. Copyright (C) 2010, ChaN, all right reserved. #Iar error code expression cannot be forward license#research and commercial developments under license policy of following trems. This is a free software and is opened for education, Petit FatFs module is an open source software to implement FAT file system to Petit FatFs - FAT file system module R0.02a (C)ChaN, 2010 If(!rc) //Kapatma i�lemi ba�ar�l� ise led(P1.6) yak s�nd�r. Rc = pf_write(0, 0, &bw) //A��lan dosyay� kapat. ![]() Rc = pf_write(buff, sizeof(buff), &bw) //�evirme i�leminden sonra 64 karakter veri ile dosya i�indeki 64 karakter veriyi yer de�i�tir. * �sim : Msp430 USI birimi ile SD kart denemesi * ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |