USBDevice with Nucleo 32L476RG support
Dependents: ObCP_ENSMM_V2020_Test_Accelero
Revision 57:7a8dce0a3c84, committed 2015-06-15
- 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();