Example source code for MAXREFDES101.

Dependencies:   max32630fthr Adafruit_FeatherOLED USBDevice

patches/USBDevice.patch

Committer:
phonemacro
Date:
2019-09-28
Revision:
4:fd2b2de65af2
Parent:
1:f60eafbf009a

File content as of revision 4:fd2b2de65af2:

diff -r c5e178adb138 USBDevice/USBHAL_Maxim.cpp
--- a/USBDevice/USBHAL_Maxim.cpp	Fri Nov 11 17:59:00 2016 +0000
+++ b/USBDevice/USBHAL_Maxim.cpp	Thu Mar 30 11:14:58 2017 +0300
@@ -141,8 +141,13 @@
 
     // attach IRQ handler and enable interrupts
     instance = this;
+#if defined(TARGET_MAX32630)
     NVIC_SetVector(USB_IRQn, &_usbisr);
+#else
+    NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
+#endif
     NVIC_EnableIRQ(USB_IRQn);
+
 }
 
 USBHAL::~USBHAL(void)