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:
Wed Mar 13 15:43:54 2013 +0000
Parent:
5:e48791a1ef18
Child:
7:e7e63ac7ae5f
Commit message:
remove useless mutex calls

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	Wed Mar 13 10:23:01 2013 +0000
+++ b/USBHost/USBHost.cpp	Wed Mar 13 15:43:54 2013 +0000
@@ -1017,9 +1017,7 @@
         printf("\r\n\r\n");
     }
 #endif
-    usb_mutex.lock();
     addTransfer(ep, buf, len);
-    usb_mutex.unlock();
 
     if (blocking) {
         
--- a/USBHost/USBHost.h	Wed Mar 13 10:23:01 2013 +0000
+++ b/USBHost/USBHost.h	Wed Mar 13 15:43:54 2013 +0000
@@ -245,10 +245,10 @@
 
     // devices connected
     USBDeviceConnected devices[MAX_DEVICE_CONNECTED];
-    volatile bool  deviceInUse[MAX_DEVICE_CONNECTED];
-    volatile bool  deviceAttachedDriver[MAX_DEVICE_CONNECTED][MAX_INTF];
-    volatile bool  deviceReset[MAX_DEVICE_CONNECTED];
-    volatile bool  deviceInited[MAX_DEVICE_CONNECTED];
+    bool  deviceInUse[MAX_DEVICE_CONNECTED];
+    bool  deviceAttachedDriver[MAX_DEVICE_CONNECTED][MAX_INTF];
+    bool  deviceReset[MAX_DEVICE_CONNECTED];
+    bool  deviceInited[MAX_DEVICE_CONNECTED];
     
 #if MAX_HUB_NB
     USBHostHub hubs[MAX_HUB_NB];