SDFileSystem
Dependencies: FATFileSystem
Fork of SDFileSystem by
Revision 7:8f4c73771378, committed 2015-06-12
- Comitter:
- Backstr?m
- Date:
- Fri Jun 12 13:57:42 2015 +0900
- Parent:
- 6:ecf15d2064b7
- Commit message:
- Make SDFileSystem compile with new FAT library.
Changed in this revision
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 ecf15d2064b7 -r 8f4c73771378 SDFileSystem.cpp --- a/SDFileSystem.cpp Fri Jun 12 03:53:47 2015 +0000 +++ b/SDFileSystem.cpp Fri Jun 12 13:57:42 2015 +0900 @@ -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 ecf15d2064b7 -r 8f4c73771378 SDFileSystem.h --- a/SDFileSystem.h Fri Jun 12 03:53:47 2015 +0000 +++ b/SDFileSystem.h Fri Jun 12 13:57:42 2015 +0900 @@ -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();