Fork of SDFileSystem with fixed version of FATFileSystem

Dependencies:   FATFileSystem

Fork of SDFileSystem by Neil Thiessen

Committer:
neilt6
Date:
Mon Aug 18 15:09:52 2014 +0000
Revision:
13:635147efa748
Parent:
11:67ddc53e3983
Significant performance improvements with better busy wait logic

Who changed what in which revision?

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