##// END OF EJS Templates
Sync
Sync

File last commit:

r89:68078fc5f465 dev_alexis
r99:3b41c9708f77 dev_alexis
Show More
test_SDCARD.c
23 lines | 538 B | text/x-c | CLexer
#include <stdio.h>
#include <fat32.h>
#include <ucdirent.h>
#include <stdarg.h>
#include <streamdevices.h>
void printRootClustersChain(FAT32fs* sdcard2FAT32part)
{
ucdirent root;
uint32_t sector_lba,res,tmp=sdcard2FAT32part->cluster_begin_lba;
sector_lba=tmp;
do
{
printf("Sector @0x%x\n",tmp);
//sector_lba=tmp+sdcard2FAT32part->BPB_SecPerClus-1;
sector_lba=tmp;
res=fat32nextsectorlba(sdcard2FAT32part,sector_lba,&tmp);
}while((res==DIRENT_noErr)&&(res!=DIRENT_LastSect));
}