2018.07.26

Dependencies:   FATFileSystem2 mbed-rtos

Fork of USBHost by mbed official

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,