Demonstration of a very simple unix-like shell. Based on integrating both Klaus Bu\'s SDHCFileSystem and the FATFileSystem library out of Thomas Hamilton\'s SDCard program. Result: you get high capacity + a plethora of filesystem functions.
FATFileSystem/Interface/FATDirHandle.h
- Committer:
- shimniok
- Date:
- 2011-10-11
- Revision:
- 0:792bddcf799d
File content as of revision 0:792bddcf799d:
/* mbed Microcontroller Library - FATDirHandle Copyright (c) 2008, sford */ //Modified by Thomas Hamilton, Copyright 2010 #ifndef MBED_FATDIRHANDLE_H #define MBED_FATDIRHANDLE_H #include "stdint.h" #include "ff.h" #include "mbed.h" #include "DirHandle.h" #include <stdio.h> class FATDirHandle : public DirHandle { private: FAT_DIR DirectoryObject; struct dirent CurrentEntry; public: FATDirHandle(FAT_DIR InputDirStr); virtual int closedir(); virtual struct dirent* readdir(); virtual void rewinddir(); virtual off_t telldir(); virtual void seekdir(off_t location); }; #endif