Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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;
--- 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();
