Merge pull request #15344 from MaximIntegrated/master

Correct MAX32620 boards macro for USB library.
pull/15352/head
Martin Kojtal 2022-10-31 13:53:16 +00:00 committed by GitHub
commit 4f156de4bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
*/
#if defined(DEVICE_USBDEVICE) && (DEVICE_USBDEVICE) && \
(defined(TARGET_MAX32620) || defined(TARGET_MAX32625) || defined(TARGET_MAX32630))
(defined(TARGET_MAX32620C) || defined(TARGET_MAX32625) || defined(TARGET_MAX32630))
#include "mbed.h"
#include "USBPhyHw.h"
@ -111,7 +111,7 @@ void USBPhyHw::init(USBPhyEvents *events)
NVIC_DisableIRQ(USB_IRQn);
// Enable the USB clock
#if defined(TARGET_MAX32620)
#if defined(TARGET_MAX32620C)
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;