implementing fatfs

This commit is contained in:
hathach committed 2018-10-25 00:03:57 +07:00
1 parent 7a23c671fd
commit 4057aedfc1
3 files changed
+127 -4

No files matched your search

+5 -2
View File
@@ -50,7 +50,7 @@ class FatFS: public BluefuritLib::FileSystemClass
virtual ~FatFS ();
bool begin ();
File open (char const *filename, uint8_t mode = FILE_READ);
BluefuritLib::File open (char const *filepath, uint8_t mode = FILE_READ);
bool exists (char const *filepath);
bool mkdir (char const *filepath);
bool remove (char const *filepath);
@@ -65,12 +65,15 @@ class FatFS: public BluefuritLib::FileSystemClass
virtual uint32_t _f_position (void* fhdl);
virtual uint32_t _f_size (void* fhdl);
virtual File _f_openNextFile (void* fhdl, char const* cwd, uint8_t mode);
virtual BluefuritLib::File _f_openNextFile (void* fhdl, char const* cwd, uint8_t mode);
virtual void _f_rewindDirectory (void* fhdl);
private:
FATFS* _fs;
bool _begun;
BluefuritLib::File _open_file (char const *filepath, uint8_t mode);
BluefuritLib::File _open_dir (char const *filepath);
};
extern FatFS ExternalFS;