TODOs: 1) Thread Safety - what isn't handled at the OS (fopen/fread/etc.) level? 2) Handle read-only permissions correctly.
The MityDSP FAT Filesystem allows a standard PC-readable FAT filesystem to be used with the MityDSP. The filesystem is tied into the standard IO library provided with the DSP/BIOS operating system, so the usual file manipulation routines may be used (fopen, fread, fwrite, fclose, etc.).
In addition, routines are provided to create or delete subdirectories, or list subdirectory contents. These functions are not part of the standard I/O library, but generally mimic the "usual" *nix implementations.
The FAT filesystem requires a storage device derived from the tcDspStorageBase class, such as tcDspFlash, tcDspAta, or tcDspMmc.
Currently the FAT16 filesystem (without long filenames) is supported.
Example code to register and use the MityDSP FAT Filesystem is shown in the code segment below: