Adaptation of the official mbed USBHost repository to work with the LPC4088 Display Module

Dependents:   DMSupport DMSupport DMSupport DMSupport

Fork of DM_USBHost by EmbeddedArtists AB

Revision:
30:ffec1f271b7c
Parent:
27:aa2fd412f1d3
Child:
32:f2d129436056
--- a/USBHost/USBHost.cpp	Mon Dec 08 12:46:05 2014 +0000
+++ b/USBHost/USBHost.cpp	Tue Jan 20 09:09:10 2015 +0100
@@ -186,6 +186,10 @@
                       }
 
                     } while(0);
+                    
+                    if (listener != 0) {
+                      osSignalSet(listener, listenerSignal);
+                    }
 
                     break;
 
@@ -211,6 +215,10 @@
 
                     } while(0);
 
+                    if (listener != 0) {
+                      osSignalSet(listener, listenerSignal);
+                    }
+                    
                     break;
 
                 // a td has been processed
@@ -283,6 +291,9 @@
         hub_in_use[i] = false;
     }
 #endif
+    
+    listener = NULL;
+    listenerSignal = 0;
 }
 
 USBHost::Lock::Lock(USBHost* pHost) : m_pHost(pHost)