USBHost library. NOTE: This library is only officially supported on the LPC1768 platform. For more information, please see the handbook page.

Dependencies:   FATFileSystem mbed-rtos

Dependents:   BTstack WallbotWii SD to Flash Data Transfer USBHost-MSD_HelloWorld ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Oct 07 09:15:28 2013 +0100
Parent:
14:80c2d927b9b5
Child:
16:ab8c9118524e
Commit message:
Synchronized with git revision 53edc82f7373bbfa01a161700524765f52fdb444

Changed in this revision

USBHost/USBHost.cpp Show annotated file Show diff for this revision Revisions of this file
USBHost/USBHost.h Show annotated file Show diff for this revision Revisions of this file
--- a/USBHost/USBHost.cpp	Thu Oct 03 11:39:59 2013 +0000
+++ b/USBHost/USBHost.cpp	Mon Oct 07 09:15:28 2013 +0100
@@ -852,7 +852,7 @@
 
     pEnumerator->setVidPid( data[8] | (data[9] << 8), data[10] | (data[11] << 8) );
 
-    res = getConfigurationDescriptor(dev, data, sizeof(data), &total_conf_descr_length);
+    res = getConfigurationDescriptor(dev, data, 300, &total_conf_descr_length);
     if (res != USB_TYPE_OK) {
         usb_mutex.unlock();
         return res;
--- a/USBHost/USBHost.h	Thu Oct 03 11:39:59 2013 +0000
+++ b/USBHost/USBHost.h	Mon Oct 07 09:15:28 2013 +0100
@@ -272,7 +272,7 @@
     Mutex td_mutex;
     
     // buffer for conf descriptor
-    uint8_t data[415];
+    uint8_t data[300];
     
     /**
     * Add a transfer on the TD linked list associated to an ED