Fork to update libraries and fix disk_read/disk_write functions

Dependencies:   FATFileSystem mbed-rtos

Dependents:   lpc4088_qsb_usbhost

Fork of LPC4088-USBHost by Norimasa Okamoto

Files at this revision

API Documentation at this revision

Comitter:
embeddedartists
Date:
Fri Apr 24 06:11:09 2015 +0000
Parent:
0:148fca6fd246
Commit message:
Updated libraries and had to fix the parameters to disk_read/disk_write

Changed in this revision

FATFileSystem.lib Show annotated file Show diff for this revision Revisions of this file
USBHostMSD/USBHostMSD.cpp Show annotated file Show diff for this revision Revisions of this file
USBHostMSD/USBHostMSD.h Show annotated file Show diff for this revision Revisions of this file
mbed-rtos.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 148fca6fd246 -r 5402b105b911 FATFileSystem.lib
--- a/FATFileSystem.lib	Fri Apr 25 05:18:55 2014 +0000
+++ b/FATFileSystem.lib	Fri Apr 24 06:11:09 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 148fca6fd246 -r 5402b105b911 USBHostMSD/USBHostMSD.cpp
--- a/USBHostMSD/USBHostMSD.cpp	Fri Apr 25 05:18:55 2014 +0000
+++ b/USBHostMSD/USBHostMSD.cpp	Fri Apr 24 06:11:09 2015 +0000
@@ -323,24 +323,24 @@
     return readCapacity();
 }
 
-int USBHostMSD::disk_write(const uint8_t *buffer, uint64_t block_number) {
-    USB_DBG("FILESYSTEM: write block: %lld", block_number);
+int USBHostMSD::disk_write(const uint8_t * buffer, uint64_t sector, uint8_t count) {
+    USB_DBG("FILESYSTEM: write block: %lld", sector);
     if (!disk_init) {
         disk_initialize();
     }
     if (!disk_init)
         return -1;
-    return dataTransfer((uint8_t *)buffer, block_number, 1, HOST_TO_DEVICE);
+    return dataTransfer((uint8_t *)buffer, sector, count, HOST_TO_DEVICE);
 }
 
-int USBHostMSD::disk_read(uint8_t * buffer, uint64_t block_number) {
-    USB_DBG("FILESYSTEM: read block %lld", block_number);
+int USBHostMSD::disk_read(uint8_t * buffer, uint64_t sector, uint8_t count) {
+    USB_DBG("FILESYSTEM: read block %lld", sector);
     if (!disk_init) {
         disk_initialize();
     }
     if (!disk_init)
         return -1;
-    return dataTransfer((uint8_t *)buffer, block_number, 1, DEVICE_TO_HOST);
+    return dataTransfer((uint8_t *)buffer, sector, count, DEVICE_TO_HOST);
 }
 
 uint64_t USBHostMSD::disk_sectors() {
diff -r 148fca6fd246 -r 5402b105b911 USBHostMSD/USBHostMSD.h
--- a/USBHostMSD/USBHostMSD.h	Fri Apr 25 05:18:55 2014 +0000
+++ b/USBHostMSD/USBHostMSD.h	Fri Apr 24 06:11:09 2015 +0000
@@ -59,8 +59,8 @@
     // From FATFileSystem
     virtual int disk_initialize();
     virtual int disk_status() {return 0;};
-    virtual int disk_read(uint8_t * buffer, uint64_t sector);
-    virtual int disk_write(const uint8_t * buffer, uint64_t sector);
+    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_sync() {return 0;};
     virtual uint64_t disk_sectors();
 
diff -r 148fca6fd246 -r 5402b105b911 mbed-rtos.lib
--- a/mbed-rtos.lib	Fri Apr 25 05:18:55 2014 +0000
+++ b/mbed-rtos.lib	Fri Apr 24 06:11:09 2015 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed-rtos/#be2573f85b81
+http://mbed.org/users/mbed_official/code/mbed-rtos/#899aee34da6a