a
Fork of USBDevice by
Revision 68:e62755e5cd1e, committed 2016-11-11
- Comitter:
- jessexm
- Date:
- Fri Nov 11 17:34:06 2016 +0000
- Parent:
- 67:6e1433359654
- Child:
- 69:c5e178adb138
- Commit message:
- [MAX32630FTHR] Adding new platform
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 Oct 07 15:41:30 2016 +0000
+++ b/USBDevice/USBHAL_Maxim.cpp Fri Nov 11 17:34:06 2016 +0000
@@ -95,6 +95,9 @@
#elif defined(TARGET_MAX32620)
// Enable the USB clock
MXC_CLKMAN->clk_ctrl |= MXC_F_CLKMAN_CLK_CTRL_USB_CLOCK_ENABLE;
+#elif defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
+ MXC_PWRMAN->pwr_rst_ctrl |= MXC_F_PWRMAN_PWR_RST_CTRL_USB_POWERED;
+ MXC_CLKMAN->clk_ctrl |= MXC_F_CLKMAN_CLK_CTRL_USB_CLOCK_ENABLE;
#endif
// reset the device
