This is SDFileSystem which corrected the bug for MiMicSDK.

Dependents:   MbedFileServer_1768MiniDK2 RedWireBridge IssueDebug_gcc MiMicRemoteMCU-for-Mbed ... more

Fork of SDFileSystem by mbed official

Committer:
nyatla
Date:
Thu Apr 25 02:14:56 2013 +0000
Revision:
5:2c7b6bd5b079
Child:
6:972a52e4d92c
This is SDFileSystem which corrected the bug. ;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nyatla 5:2c7b6bd5b079 1 /* mbed Microcontroller Library
nyatla 5:2c7b6bd5b079 2 * Copyright (c) 2006-2012 ARM Limited
nyatla 5:2c7b6bd5b079 3 *
nyatla 5:2c7b6bd5b079 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
nyatla 5:2c7b6bd5b079 5 * of this software and associated documentation files (the "Software"), to deal
nyatla 5:2c7b6bd5b079 6 * in the Software without restriction, including without limitation the rights
nyatla 5:2c7b6bd5b079 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
nyatla 5:2c7b6bd5b079 8 * copies of the Software, and to permit persons to whom the Software is
nyatla 5:2c7b6bd5b079 9 * furnished to do so, subject to the following conditions:
nyatla 5:2c7b6bd5b079 10 *
nyatla 5:2c7b6bd5b079 11 * The above copyright notice and this permission notice shall be included in
nyatla 5:2c7b6bd5b079 12 * all copies or substantial portions of the Software.
nyatla 5:2c7b6bd5b079 13 *
nyatla 5:2c7b6bd5b079 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
nyatla 5:2c7b6bd5b079 15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
nyatla 5:2c7b6bd5b079 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
nyatla 5:2c7b6bd5b079 17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
nyatla 5:2c7b6bd5b079 18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
nyatla 5:2c7b6bd5b079 19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
nyatla 5:2c7b6bd5b079 20 * SOFTWARE.
nyatla 5:2c7b6bd5b079 21 */
nyatla 5:2c7b6bd5b079 22 #ifndef MBED_FATDIRHANDLE_H
nyatla 5:2c7b6bd5b079 23 #define MBED_FATDIRHANDLE_H
nyatla 5:2c7b6bd5b079 24
nyatla 5:2c7b6bd5b079 25 #include "DirHandle.h"
nyatla 5:2c7b6bd5b079 26
nyatla 5:2c7b6bd5b079 27 using namespace mbed;
nyatla 5:2c7b6bd5b079 28
nyatla 5:2c7b6bd5b079 29 class FATDirHandle : public DirHandle {
nyatla 5:2c7b6bd5b079 30
nyatla 5:2c7b6bd5b079 31 public:
nyatla 5:2c7b6bd5b079 32 FATDirHandle(const FATFS_DIR &the_dir);
nyatla 5:2c7b6bd5b079 33 virtual int closedir();
nyatla 5:2c7b6bd5b079 34 virtual struct dirent *readdir();
nyatla 5:2c7b6bd5b079 35 virtual void rewinddir();
nyatla 5:2c7b6bd5b079 36 virtual off_t telldir();
nyatla 5:2c7b6bd5b079 37 virtual void seekdir(off_t location);
nyatla 5:2c7b6bd5b079 38
nyatla 5:2c7b6bd5b079 39 private:
nyatla 5:2c7b6bd5b079 40 FATFS_DIR dir;
nyatla 5:2c7b6bd5b079 41 struct dirent cur_entry;
nyatla 5:2c7b6bd5b079 42
nyatla 5:2c7b6bd5b079 43 };
nyatla 5:2c7b6bd5b079 44
nyatla 5:2c7b6bd5b079 45 #endif