diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-01-04 15:11:03 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-01-04 15:11:03 +0000 |
commit | 6f470322d0241e1923bd1d83d66f291aff571658 (patch) | |
tree | 7841acf3bdcc48add6bea4f23a7aef794e3e9531 /os/fs/fatfs/fatfs_fsimpl.cpp | |
parent | 2fa014a7be21c7d893fbbb2101c97c51971321b9 (diff) | |
download | ChibiOS-6f470322d0241e1923bd1d83d66f291aff571658.tar.gz ChibiOS-6f470322d0241e1923bd1d83d66f291aff571658.tar.bz2 ChibiOS-6f470322d0241e1923bd1d83d66f291aff571658.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5032 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/fs/fatfs/fatfs_fsimpl.cpp')
-rw-r--r-- | os/fs/fatfs/fatfs_fsimpl.cpp | 83 |
1 files changed, 78 insertions, 5 deletions
diff --git a/os/fs/fatfs/fatfs_fsimpl.cpp b/os/fs/fatfs/fatfs_fsimpl.cpp index e63f71323..c10c1a89f 100644 --- a/os/fs/fatfs/fatfs_fsimpl.cpp +++ b/os/fs/fatfs/fatfs_fsimpl.cpp @@ -44,14 +44,82 @@ using namespace chibios_fs; */
namespace chibios_fatfs {
+ typedef struct {
+ uint32_t msg_code;
+ union {
+ struct {
+
+ };
+ } op;
+ } wmsg_t;
+
+ /*------------------------------------------------------------------------*
+ * chibios_fatfs::FatFSFileWrapper *
+ *------------------------------------------------------------------------*/
+ FatFSFileWrapper::FatFSFileWrapper(void) : fs(NULL) {
+
+ }
+
+ FatFSFileWrapper::FatFSFileWrapper(FatFSWrapper *fsref) : fs(fsref) {
+
+ }
+
+ size_t FatFSFileWrapper::write(const uint8_t *bp, size_t n) {
+
+ return 0;
+ }
+
+ size_t FatFSFileWrapper::read(uint8_t *bp, size_t n) {
+
+ return 0;
+ }
+
+ msg_t FatFSFileWrapper::put(uint8_t b) {
+
+ return 0;
+ }
+
+ msg_t FatFSFileWrapper::get(void) {
+
+ return 0;
+ }
+
+ uint32_t FatFSFileWrapper::getAndClearLastError(void) {
+
+ return 0;
+ }
+
+ fileoffset_t FatFSFileWrapper::getSize(void) {
+
+ return 0;
+ }
+
+ fileoffset_t FatFSFileWrapper::getPosition(void) {
+
+ return 0;
+ }
+
+ uint32_t FatFSFileWrapper::setPosition(fileoffset_t offset) {
+
+ return 0;
+ }
+
+ /*------------------------------------------------------------------------*
+ * chibios_fatfs::FatFSFilesPool *
+ *------------------------------------------------------------------------*/
+ FatFSFilesPool::FatFSFilesPool(void) : MemoryPoolBuffer<FatFSFileWrapper,
+ FATFS_MAX_FILES>() {
+
+ }
+
/*------------------------------------------------------------------------*
- * chibios_fatfs::FatFSWrapper::FatFSServerThread *
+ * chibios_fatfs::FatFSServerThread *
*------------------------------------------------------------------------*/
- FatFSWrapper::FatFSServerThread::FatFSServerThread(void) :
+ FatFSServerThread::FatFSServerThread(void) :
BaseStaticThread<FATFS_THREAD_STACK_SIZE>() {
}
- msg_t FatFSWrapper::FatFSServerThread::main() {
+ msg_t FatFSServerThread::main() {
msg_t sts;
setName("fatfs");
@@ -72,14 +140,14 @@ namespace chibios_fatfs { }
}
- void FatFSWrapper::FatFSServerThread::stop(void) {
+ void FatFSServerThread::stop(void) {
sendMessage(MSG_TERMINATE);
wait();
}
/*------------------------------------------------------------------------*
- * chibios_fatfs::FatFSWrapper *
+ * chibios_fatfs::FatFSWrapper *
*------------------------------------------------------------------------*/
FatFSWrapper::FatFSWrapper(void) {
@@ -132,6 +200,11 @@ namespace chibios_fatfs { (void)fname;
return NULL;
}
+
+ void FatFSWrapper::close(BaseFileStreamInterface *file) {
+
+ (void)file;
+ }
}
/** @} */
|