USB Library for Maxim Targeets

Fork of USBDevice by Maxim Integrated

Files at this revision

API Documentation at this revision

Comitter:
switches
Date:
Wed Aug 01 22:43:36 2018 +0000
Parent:
68:17ac7abb27a7
Commit message:
Added support for MAX32620C

Changed in this revision

USBDevice/USBHAL_Maxim.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 17ac7abb27a7 -r a3ed0a3c99fe USBDevice/USBHAL_Maxim.cpp
--- a/USBDevice/USBHAL_Maxim.cpp	Tue Jun 13 22:42:27 2017 +0000
+++ b/USBDevice/USBHAL_Maxim.cpp	Wed Aug 01 22:43:36 2018 +0000
@@ -37,7 +37,7 @@
 #include "usb_regs.h"
 #include "clkman_regs.h"
 
-#if defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
+#if defined(TARGET_MAX32625) || defined(TARGET_MAX32630) || defined(TARGET_MAX32620C)
 #include "pwrman_regs.h"
 #endif
 
@@ -99,7 +99,7 @@
 #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)
+#elif defined(TARGET_MAX32625) || defined(TARGET_MAX32630) || defined(TARGET_MAX32620C)
     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