mbed official / mbed-dev

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
153:fa9ff456f731
Parent:
149:156823d33999
Child:
157:ff67d9f36b67
--- a/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_ll_usb.c	Thu Dec 15 11:48:27 2016 +0000
+++ b/targets/TARGET_STM/TARGET_STM32F7/device/stm32f7xx_ll_usb.c	Tue Dec 20 17:27:56 2016 +0000
@@ -594,7 +594,7 @@
         /* Enable the Tx FIFO Empty Interrupt for this EP */
         if (ep->xfer_len > 0)
         {
-          USBx_DEVICE->DIEPEMPMSK |= 1 << ep->num;
+          atomic_set_u32(&USBx_DEVICE->DIEPEMPMSK,  1 << ep->num);
         }
       }
     }
@@ -712,7 +712,7 @@
       /* Enable the Tx FIFO Empty Interrupt for this EP */
       if (ep->xfer_len > 0)
       {
-        USBx_DEVICE->DIEPEMPMSK |= 1 << (ep->num);
+        atomic_set_u32(&USBx_DEVICE->DIEPEMPMSK,  1 << (ep->num));
       }
     }