My fork of the FATFileSystem (working)
Fork of FatFileSystem by
Diff: FATFileSystem.h
- Revision:
- 4:a3c0bfc113b2
- Parent:
- 0:97df4125f18d
diff -r 333d6e93e58f -r a3c0bfc113b2 FATFileSystem.h --- a/FATFileSystem.h Tue Jun 26 08:32:32 2012 +0000 +++ b/FATFileSystem.h Tue Nov 20 12:19:46 2012 +0000 @@ -25,37 +25,37 @@ #include "diskio.h" namespace mbed { -/* Class: FATFileSystem - * The class itself - */ +/** FATFileSystem + * The class itself + */ class FATFileSystem : public FileSystemLike { public: - FATFileSystem(const char* n); - virtual ~FATFileSystem(); - - /* Function: open - * open a file on the filesystem. never called directly - */ - virtual FileHandle *open(const char* name, int flags); - virtual int remove(const char *filename); - virtual int format(); + FATFileSystem(const char* n); + virtual ~FATFileSystem(); + + /** open + * open a file on the filesystem. never called directly + */ + virtual FileHandle *open(const char* name, int flags); + virtual int remove(const char *filename); + virtual int format(); virtual DirHandle *opendir(const char *name); virtual int mkdir(const char *name, mode_t mode); - - FATFS _fs; // Work area (file system object) for logical drive - static FATFileSystem *_ffs[_DRIVES]; // FATFileSystem objects, as parallel to FatFs drives array - int _fsid; - - virtual int disk_initialize() { return 0; } - virtual int disk_status() { return 0; } - virtual int disk_read(char *buffer, int sector) = 0; - virtual int disk_write(const char *buffer, int sector) = 0; - virtual int disk_sync() { return 0; } - virtual int disk_sectors() = 0; - + + FATFS _fs; // Work area (file system object) for logical drive + static FATFileSystem *_ffs[_DRIVES]; // FATFileSystem objects, as parallel to FatFs drives array + int _fsid; + + virtual int disk_initialize() { return 0; } + virtual int disk_status() { return 0; } + virtual int disk_read(char *buffer, int sector) = 0; + virtual int disk_write(const char *buffer, int sector) = 0; + virtual int disk_sync() { return 0; } + virtual int disk_sectors() = 0; + }; - + } #endif