USB device stack

Dependents:   mbed-mX-USB-TEST1 USBMSD_SD_HID_HelloWorld HidTest MIDI_usb_bridge ... more

Legacy Warning

This is an mbed 2 library. To learn more about mbed OS 5, visit the docs.

Pull requests against this repository are no longer supported. Please raise against mbed OS 5 as documented above.

Files at this revision

API Documentation at this revision

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