Mbed project to control a hoverboard

Dependencies:   mbed wave_player Servo 4DGL-uLCD-SE LSM9DS1_Library_cal HC_SR04_Ultrasonic_Library

Committer:
msafwan3
Date:
Wed Apr 29 22:42:25 2020 +0000
Revision:
3:bf0c46975248
Parent:
0:808403b99108
removed rtos

Who changed what in which revision?

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