Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SDFAT.cpp Source File

SDFAT.cpp

00001 #include "SDFAT.h"
00002 
00003 SDFAT::SDFAT(const char *n, MSD_Disk *disk) : mbed::FATFileSystem(n)
00004 {
00005     d = disk;
00006 }
00007 
00008 int SDFAT::disk_initialize()
00009 {
00010     return d->disk_initialize();
00011 }
00012 
00013 int SDFAT::disk_status()
00014 {
00015     return d->disk_status();
00016 }
00017 
00018 int SDFAT::disk_read(char *buffer, int sector)
00019 {
00020     return d->disk_read(buffer, sector);
00021 }
00022 
00023 int SDFAT::disk_write(const char *buffer, int sector)
00024 {
00025     return d->disk_write(buffer, sector);
00026 }
00027 
00028 int SDFAT::disk_sync()
00029 {
00030     return d->disk_sync();
00031 }
00032 
00033 int SDFAT::disk_sectors()
00034 {
00035     return d->disk_sectors();
00036 }