USB device stack

Dependents:   blinky_max32630fthr FTHR_USB_serial FTHR_OLED HSP_RPC_GUI_3_0_1 ... more

Fork of USBDevice by mbed official

Files at this revision

API Documentation at this revision

Comitter:
jessexm
Date:
Mon Jun 12 23:05:18 2017 +0000
Parent:
66:c5e178adb138
Child:
68:17ac7abb27a7
Commit message:
Workaround for API incompatibility

Changed in this revision

USBDevice/USBHAL_Maxim.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBDevice/USBHAL_Maxim.cpp	Fri Nov 11 17:59:00 2016 +0000
+++ b/USBDevice/USBHAL_Maxim.cpp	Mon Jun 12 23:05:18 2017 +0000
@@ -141,7 +141,11 @@
 
     // attach IRQ handler and enable interrupts
     instance = this;
-    NVIC_SetVector(USB_IRQn, &_usbisr);
+#if defined(TARGET_MAX32620C) || defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
+    NVIC_SetVector(USB_IRQn, _usbisr);
+#else
+    NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
+#endif
     NVIC_EnableIRQ(USB_IRQn);
 }