No change from original version.
Fork of SDFileSystem by
Revision 21:d10a519c0910, committed 2015-12-11
- Comitter:
- neilt6
- Date:
- Fri Dec 11 16:30:36 2015 +0000
- Parent:
- 20:2c1e8d442f68
- Child:
- 22:3fa5eaf48e81
- Commit message:
- Updated FATFileSystem & fixed integer widths
Changed in this revision
--- a/FATFileSystem.lib Tue Dec 08 16:02:44 2015 +0000 +++ b/FATFileSystem.lib Fri Dec 11 16:30:36 2015 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/teams/mbed-official/code/FATFileSystem/#a5fcdbf92056 +http://mbed.org/teams/mbed-official/code/FATFileSystem/#094f84646b9f
--- a/SDFileSystem.cpp Tue Dec 08 16:02:44 2015 +0000 +++ b/SDFileSystem.cpp Fri Dec 11 16:30:36 2015 +0000 @@ -315,7 +315,7 @@ return m_Status; } -int SDFileSystem::disk_read(uint8_t* buffer, uint64_t sector, uint8_t count) +int SDFileSystem::disk_read(uint8_t* buffer, uint32_t sector, uint32_t count) { //Make sure the card is initialized before proceeding if (m_Status & STA_NOINIT) @@ -329,7 +329,7 @@ } } -int SDFileSystem::disk_write(const uint8_t* buffer, uint64_t sector, uint8_t count) +int SDFileSystem::disk_write(const uint8_t* buffer, uint32_t sector, uint32_t count) { //Make sure the card is initialized before proceeding if (m_Status & STA_NOINIT) @@ -358,7 +358,7 @@ } } -uint64_t SDFileSystem::disk_sectors() +uint32_t SDFileSystem::disk_sectors() { //Make sure the card is initialized before proceeding if (m_Status & STA_NOINIT)
--- a/SDFileSystem.h Tue Dec 08 16:02:44 2015 +0000 +++ b/SDFileSystem.h Fri Dec 11 16:30:36 2015 +0000 @@ -163,10 +163,10 @@ virtual int unmount(); virtual int disk_initialize(); virtual int disk_status(); - virtual int disk_read(uint8_t* buffer, uint64_t sector, uint8_t count); - virtual int disk_write(const uint8_t* buffer, uint64_t sector, uint8_t count); + virtual int disk_read(uint8_t* buffer, uint32_t sector, uint32_t count); + virtual int disk_write(const uint8_t* buffer, uint32_t sector, uint32_t count); virtual int disk_sync(); - virtual uint64_t disk_sectors(); + virtual uint32_t disk_sectors(); private: //Commands