support new rev of FatFileSystem.
Dependents: MemFilesystem_test
Fork of SDFileSystem by
Revision 4:013bb7c490c0, committed 2015-04-01
- Comitter:
- mzta
- Date:
- Wed Apr 01 16:30:44 2015 +0000
- Parent:
- 3:7b35d1709458
- Commit message:
- support new rev of FatFileSystem.
Changed in this revision
diff -r 7b35d1709458 -r 013bb7c490c0 FATFileSystem.lib --- a/FATFileSystem.lib Mon Mar 17 14:34:01 2014 +0000 +++ b/FATFileSystem.lib Wed Apr 01 16:30:44 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/FATFileSystem/#e960e2b81a3c +http://developer.mbed.org/users/mzta/code/FATFileSystem/#3a1206d2cae6
diff -r 7b35d1709458 -r 013bb7c490c0 SDFileSystem.cpp --- a/SDFileSystem.cpp Mon Mar 17 14:34:01 2014 +0000 +++ b/SDFileSystem.cpp Wed Apr 01 16:30:44 2015 +0000 @@ -211,7 +211,7 @@ return 0; } -int SDFileSystem::disk_write(const uint8_t *buffer, uint64_t block_number) { +int SDFileSystem::disk_write(const uint8_t *buffer, uint64_t block_number, uint8_t count) { // set write address for single block (CMD24) if (_cmd(24, block_number * cdv) != 0) { return 1; @@ -222,7 +222,7 @@ return 0; } -int SDFileSystem::disk_read(uint8_t *buffer, uint64_t block_number) { +int SDFileSystem::disk_read(uint8_t *buffer, uint64_t block_number, uint8_t count) { // set read address for single block (CMD17) if (_cmd(17, block_number * cdv) != 0) { return 1;
diff -r 7b35d1709458 -r 013bb7c490c0 SDFileSystem.h --- a/SDFileSystem.h Mon Mar 17 14:34:01 2014 +0000 +++ b/SDFileSystem.h Wed Apr 01 16:30:44 2015 +0000 @@ -56,8 +56,8 @@ virtual int disk_initialize(); virtual int disk_status(); - virtual int disk_read(uint8_t * buffer, uint64_t block_number); - virtual int disk_write(const uint8_t * buffer, uint64_t block_number); + virtual int disk_read(uint8_t * buffer, uint64_t block_number, uint8_t count); + virtual int disk_write(const uint8_t * buffer, uint64_t block_number, uint8_t count); virtual int disk_sync(); virtual uint64_t disk_sectors();