Fork of https://developer.mbed.org/users/bscott/code/STM32_USBDevice/

Fork of STM32_USBDevice by Bradley Scott

Revision:
79:d28244984385
Parent:
76:eef92651f52f
--- a/USBDevice/USBHAL_STM32F4.cpp	Fri Oct 27 17:22:45 2017 +0200
+++ b/USBDevice/USBHAL_STM32F4.cpp	Wed Jul 25 14:04:48 2018 +0200
@@ -249,7 +249,7 @@
     return EP_COMPLETED;
 }
 
-EP_STATUS USBHAL::endpointWrite(uint8_t endpoint, uint8_t *data, uint32_t size) {
+EP_STATUS USBHAL::endpointWrite(uint8_t endpoint, const uint8_t *data, uint32_t size) {
     uint32_t epIndex = endpoint >> 1;
     OTG_FS->INEP_REGS[epIndex].DIEPTSIZ = (1 << 19) | // 1 packet
                                           (size << 0); // Size of packet