Skip to content
Snippets Groups Projects

Debug module

Open swym requested to merge swym/firmware:debug_module into master
1 unresolved thread
Files
10
@@ -189,6 +189,33 @@ void fatfs_close_all(int coreMask)
efs_unlock_global(fs);
}
}
void efs_dump_status(EpicFileSystem *fs)
{
printf(">>> FS status\n");
for (int index = 0; index < EPIC_FAT_MAX_OPENED; ++index) {
struct FatObject *fso = &fs->pool[index];
int fd = EPIC_FAT_FD(index, fso->generation);
printf(" fd[%2d]: generation: %6d fd: 0x%08x type: ",
index,
fso->generation,
fd);
switch (fso->type) {
case EPICSTAT_NONE:
printf("%s ", "NONE");
break;
case EPICSTAT_FILE:
printf("%s ", "FILE");
break;
case EPICSTAT_DIR:
printf("%s ", "DIR");
break;
}
printf("coreMask: %02x\n", fso->coreMask);
}
printf("<<< FS status\n");
}
static const char *f_get_rc_string(FRESULT rc)
{
static const TCHAR *rcstrings =
Loading