Skip to content

Commit 4f156de

Browse files
authored
Merge pull request #15344 from MaximIntegrated/master
Correct MAX32620 boards macro for USB library.
2 parents f0643b1 + 1432f81 commit 4f156de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_Maxim/USBPhy_Maxim.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
#if defined(DEVICE_USBDEVICE) && (DEVICE_USBDEVICE) && \
19-
(defined(TARGET_MAX32620) || defined(TARGET_MAX32625) || defined(TARGET_MAX32630))
19+
(defined(TARGET_MAX32620C) || defined(TARGET_MAX32625) || defined(TARGET_MAX32630))
2020

2121
#include "mbed.h"
2222
#include "USBPhyHw.h"
@@ -111,7 +111,7 @@ void USBPhyHw::init(USBPhyEvents *events)
111111
NVIC_DisableIRQ(USB_IRQn);
112112

113113
// Enable the USB clock
114-
#if defined(TARGET_MAX32620)
114+
#if defined(TARGET_MAX32620C)
115115
MXC_CLKMAN->clk_ctrl |= MXC_F_CLKMAN_CLK_CTRL_USB_CLOCK_ENABLE;
116116
#elif defined(TARGET_MAX32625) || defined(TARGET_MAX32630)
117117
MXC_PWRMAN->pwr_rst_ctrl |= MXC_F_PWRMAN_PWR_RST_CTRL_USB_POWERED;

0 commit comments

Comments
 (0)