fix to disk_read and disk_write functions to conform to virtual functions updated in version 4 of FATFileSystem. added extra parameter uint8_t count to each prototype and function.

Dependencies:   FATFileSystem

Fork of SDFileSystem by Mbed

Files at this revision

API Documentation at this revision

Comitter:
maclobdell
Date:
Tue Jul 14 17:31:17 2015 +0000
Parent:
3:7b35d1709458
Commit message:
fix to disk_read and disk_write functions to conform to virtual functions updated in version 4 of FATFileSystem. added extra parameter uint8_t count to each prototype and function.

Changed in this revision

FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
SDFileSystem.h Show annotated file Show diff for this revision Revisions of this file
diff -r 7b35d1709458 -r 089ca6cbcf13 FATFileSystem.lib
--- a/FATFileSystem.lib	Mon Mar 17 14:34:01 2014 +0000
+++ b/FATFileSystem.lib	Tue Jul 14 17:31:17 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/FATFileSystem/#e960e2b81a3c
+http://mbed.org/users/mbed_official/code/FATFileSystem/#3ff2606d5713
diff -r 7b35d1709458 -r 089ca6cbcf13 SDFileSystem.cpp
--- a/SDFileSystem.cpp	Mon Mar 17 14:34:01 2014 +0000
+++ b/SDFileSystem.cpp	Tue Jul 14 17:31:17 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 089ca6cbcf13 SDFileSystem.h
--- a/SDFileSystem.h	Mon Mar 17 14:34:01 2014 +0000
+++ b/SDFileSystem.h	Tue Jul 14 17:31:17 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();