We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9455f2 + d23520e commit 42675bbCopy full SHA for 42675bb
features/unsupported/USBDevice/USBDevice/USBHAL_Maxim.cpp
@@ -37,6 +37,10 @@
37
#include "usb_regs.h"
38
#include "clkman_regs.h"
39
40
+#if defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
41
+#include "pwrman_regs.h"
42
+#endif
43
+
44
#define CONNECT_INTS (MXC_F_USB_DEV_INTEN_BRST | MXC_F_USB_DEV_INTEN_SETUP | MXC_F_USB_DEV_INTEN_EP_IN | MXC_F_USB_DEV_INTEN_EP_OUT | MXC_F_USB_DEV_INTEN_DMA_ERR)
45
46
USBHAL *USBHAL::instance;
@@ -134,7 +138,7 @@ USBHAL::USBHAL(void)
134
138
135
139
// attach IRQ handler and enable interrupts
136
140
instance = this;
137
- NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
141
+ NVIC_SetVector(USB_IRQn, &_usbisr);
142
NVIC_EnableIRQ(USB_IRQn);
143
}
144
0 commit comments