Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: STM32F103C8T6_WebUSBDFU STM32F103C8T6_USBDFU STM32F103C8T6_USBDFU dfu_usb_stm32f103
Fork of USBDevice_STM32F103 by
Diff: USBDevice/USBHAL_LPC17.cpp
- Revision:
- 25:7c72828865f3
- Parent:
- 8:335f2506f422
- Child:
- 55:c7fd9d44ec8e
--- a/USBDevice/USBHAL_LPC17.cpp Fri May 16 09:00:39 2014 +0100
+++ b/USBDevice/USBHAL_LPC17.cpp Tue Jun 03 11:30:32 2014 +0100
@@ -279,7 +279,7 @@
SIEselectEndpoint(endpoint);
SIEclearBuffer();
}
-
+
return size;
}
@@ -327,7 +327,7 @@
USBHAL::USBHAL(void) {
// Disable IRQ
NVIC_DisableIRQ(USB_IRQn);
-
+
// fill in callback array
epCallback[0] = &USBHAL::EP1_OUT_callback;
epCallback[1] = &USBHAL::EP1_IN_callback;
@@ -466,7 +466,7 @@
if (!(epComplete & EP(endpoint)))
return EP_PENDING;
}
-
+
*bytesRead = endpointReadcore(endpoint, buffer);
epComplete &= ~EP(endpoint);
return EP_COMPLETED;
@@ -606,7 +606,7 @@
LPC_USB->USBDevIntClr = EP_SLOW;
EP0in();
}
-
+
for (uint8_t num = 2; num < 16*2; num++) {
if (LPC_USB->USBEpIntSt & EP(num)) {
selectEndpointClearInterrupt(num);
