Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FATFileSystem mbed-rtos mbed
Fork of USBHost by
Revision 6:1571e517a91b, committed 2013-03-13
- 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];
