Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice by
Revision 69:c5e178adb138, committed 2016-11-11
- Comitter:
- jessexm
- Date:
- Fri Nov 11 17:59:00 2016 +0000
- Parent:
- 68:e62755e5cd1e
- Child:
- 70:2c525a50f1b6
- Commit message:
- [MAX32630FTHR] Include missing header and vector function cast
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:34:06 2016 +0000
+++ b/USBDevice/USBHAL_Maxim.cpp Fri Nov 11 17:59:00 2016 +0000
@@ -37,6 +37,10 @@
#include "usb_regs.h"
#include "clkman_regs.h"
+#if defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
+#include "pwrman_regs.h"
+#endif
+
#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)
USBHAL *USBHAL::instance;
@@ -137,7 +141,7 @@
// attach IRQ handler and enable interrupts
instance = this;
- NVIC_SetVector(USB_IRQn, (uint32_t)&_usbisr);
+ NVIC_SetVector(USB_IRQn, &_usbisr);
NVIC_EnableIRQ(USB_IRQn);
}
