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.
Dependents: GR-PEACH_HVC-P2_sample_client mbed-os-storage-access GR-PEACH_Digital_Signage GR-PEACH_Audio_Playback_Sample ... more
Fork of USBHost by
Diff: USBHost/USBHost.h
- Revision:
- 9:7671b6a8c363
- Parent:
- 8:93da8ea2708b
- Child:
- 14:80c2d927b9b5
--- a/USBHost/USBHost.h Thu Mar 14 11:49:53 2013 +0000
+++ b/USBHost/USBHost.h Thu Mar 14 14:20:03 2013 +0000
@@ -133,7 +133,7 @@
* @param dev device which will be resetted
*/
USB_TYPE resetDevice(USBDeviceConnected * dev);
-
+
/**
* Get a device
*
@@ -197,7 +197,7 @@
* @param addr list of the TDs which have been completed
*/
virtual void transferCompleted(volatile uint32_t addr);
-
+
/**
* Virtual method called when a device has been connected
*
@@ -267,9 +267,9 @@
Thread usbThread;
void usb_process();
static void usb_process_static(void const * arg);
- MemoryPool<message_t, 10> mpool_usb_event;
- Queue<message_t, 10> queue_usb_event;
+ Mail<message_t, 10> mail_usb_event;
Mutex usb_mutex;
+ Mutex td_mutex;
// buffer for conf descriptor
uint8_t data[300];
@@ -349,7 +349,7 @@
* @param dev device to be freed
*/
void freeDevice(USBDeviceConnected * dev);
-
+
USB_TYPE controlTransfer( USBDeviceConnected * dev,
uint8_t requestType,
uint8_t request,
