Skip to content

Commit d23520e

Browse files
committed
Maxim USB library update
Adding support for new platforms into official USB library
1 parent 4980276 commit d23520e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

features/unsupported/USBDevice/USBDevice/USBHAL_Maxim.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
#include "usb_regs.h"
3838
#include "clkman_regs.h"
3939

40+
#if defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
41+
#include "pwrman_regs.h"
42+
#endif
43+
4044
#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)
4145

4246
USBHAL *USBHAL::instance;
@@ -134,7 +138,7 @@ USBHAL::USBHAL(void)
134138

135139
// attach IRQ handler and enable interrupts
136140
instance = this;
137-
NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
141+
NVIC_SetVector(USB_IRQn, &_usbisr);
138142
NVIC_EnableIRQ(USB_IRQn);
139143
}
140144

0 commit comments

Comments
 (0)