I changed one line of code in the file with path name: USBDeviceHT/targets/TARGET_Maxim

Fork of USBDeviceHT by Helmut Tschemernjak

Files at this revision

API Documentation at this revision

Comitter:
dev_alexander
Date:
Fri Jun 01 21:43:55 2018 +0000
Parent:
4:b6be2a43cb85
Commit message:
Fixed Error with code not compiling due to an issue with there not being a (uint32_t) cast of a (void) pointer. Maxim was the only mbed vendor to not have this one (uint32_t) cast in the spot it was added to. Look into public repos for similar cases.

Changed in this revision

targets/TARGET_Maxim/USBHAL_Maxim.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/targets/TARGET_Maxim/USBHAL_Maxim.cpp	Fri Feb 23 12:48:37 2018 +0000
+++ b/targets/TARGET_Maxim/USBHAL_Maxim.cpp	Fri Jun 01 21:43:55 2018 +0000
@@ -138,7 +138,7 @@
 
     // attach IRQ handler and enable interrupts
     instance = this;
-    NVIC_SetVector(USB_IRQn, &_usbisr);
+    NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
     NVIC_EnableIRQ(USB_IRQn);
 }