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:
samux
Date:
Mon Mar 18 14:46:56 2013 +0000
Parent:
9:7671b6a8c363
Child:
11:0e0baf9a3236
Commit message:
fixed skip bit - fixed max size conf descriptor

Changed in this revision

USBHost/USBHost.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBHost/USBHost.cpp	Thu Mar 14 14:20:03 2013 +0000
+++ b/USBHost/USBHost.cpp	Mon Mar 18 14:46:56 2013 +0000
@@ -423,7 +423,7 @@
                 for (int i = 0; i < dev->getInterface(j)->nb_endpoint; i++) {
                     if ((ep = dev->getEndpoint(j, i)) != NULL) {
                         ed = (HCED *)ep->getHCED();
-                        ed->control |= (1 << 13); //sKip bit
+                        ed->control |= (1 << 14); //sKip bit
                         unqueueEndpoint(ep);
 
                         freeTD((volatile uint8_t*)ep->getTDList()[0]);
@@ -851,7 +851,7 @@
 
     pEnumerator->setVidPid( data[8] | (data[9] << 8), data[10] | (data[11] << 8) );
 
-    res = getConfigurationDescriptor(dev, data, 400, &total_conf_descr_length);
+    res = getConfigurationDescriptor(dev, data, 300, &total_conf_descr_length);
     if (res != USB_TYPE_OK) {
         usb_mutex.unlock();
         return res;