diff options
Diffstat (limited to 'os/fs/fatfs/fatfs_fsimpl.hpp')
-rw-r--r-- | os/fs/fatfs/fatfs_fsimpl.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/os/fs/fatfs/fatfs_fsimpl.hpp b/os/fs/fatfs/fatfs_fsimpl.hpp index c8a454c3c..8c61c5748 100644 --- a/os/fs/fatfs/fatfs_fsimpl.hpp +++ b/os/fs/fatfs/fatfs_fsimpl.hpp @@ -27,6 +27,7 @@ */
#include "ch.hpp"
+#include "fs.hpp"
#include "hal.h"
#ifndef _FS_FATFS_IMPL_HPP_
@@ -47,6 +48,7 @@ #endif
using namespace chibios_rt;
+using namespace chibios_fs;
/**
* @brief FatFS wrapper-related classes and interfaces.
@@ -71,13 +73,17 @@ namespace chibios_fatfs { virtual msg_t main(void);
public:
FatFSServerThread(::BaseBlockDevice *blkdev);
- ~FatFSServerThread();
} server;
public:
FatFSWrapper(::BaseBlockDevice *blkdev);
-
- ~FatFSWrapper();
+ virtual uint32_t getAndClearLastError(void);
+ virtual void synchronize(void);
+ virtual void remove(const char *fname);
+ virtual BaseFileStreamInterface *open(const char *fname);
+ virtual BaseFileStreamInterface *openForRead(const char *fname);
+ virtual BaseFileStreamInterface *openForWrite(const char *fname);
+ virtual BaseFileStreamInterface *create(const char *fname);
};
}
|