USB device stack, fixes for USBSerial, lightweight without malloc (RTOS ready)

Dependents:   EMIRv2

Fork of USBDevice by Ales Povalac

Revision:
23:c7639faed2eb
Parent:
22:5b7d31d9d3f3
Child:
24:96a0946caef5
--- a/USBDevice/USBHAL_KL25Z.cpp	Wed Apr 02 21:00:41 2014 +0100
+++ b/USBDevice/USBHAL_KL25Z.cpp	Mon Apr 28 12:15:41 2014 +0000
@@ -450,6 +450,9 @@
         USB0->ERREN   =  0xFF;  // enable error interrupt sources
         USB0->ADDR    =  0x00;  // set default address
 
+        // reset bus for USBDevice layer
+        busReset();
+
         return;
     }