USB device stack

Dependents:   mbed-mX-USB-TEST1 USBMSD_SD_HID_HelloWorld HidTest MIDI_usb_bridge ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Mon Jun 15 07:15:54 2015 +0100
Parent:
56:151ba33713ff
Child:
58:f3cad7e6984e
Commit message:
Synchronized with git revision 77a973c00943e35b25c7aa34590de6e06de2ccef

Full URL: https://github.com/mbedmicro/mbed/commit/77a973c00943e35b25c7aa34590de6e06de2ccef/

Update k64f_emac.c

Changed in this revision

USBDevice/USBHAL_LPC11U.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBDevice/USBHAL_LPC11U.cpp	Mon Jun 08 08:15:25 2015 +0100
+++ b/USBDevice/USBHAL_LPC11U.cpp	Mon Jun 15 07:15:54 2015 +0100
@@ -668,8 +668,10 @@
         if (LPC_USB->DEVCMDSTAT & DSUS_C) {
             // Suspend status changed
             LPC_USB->DEVCMDSTAT = devCmdStat | DSUS_C;
-            if((LPC_USB->DEVCMDSTAT & DSUS) != 0) {
+            if (LPC_USB->DEVCMDSTAT & DSUS) {
                 suspendStateChanged(1);
+            } else {
+                suspendStateChanged(0);
             }
         }
 
@@ -677,8 +679,6 @@
             // Bus reset
             LPC_USB->DEVCMDSTAT = devCmdStat | DRES_C;
 
-            suspendStateChanged(0);
-
             // Disable endpoints > 0
             disableEndpoints();