From eab8555fc8f903ef50dc91f8affda320754c1c38 Mon Sep 17 00:00:00 2001 From: cyliangtw Date: Tue, 31 Dec 2019 10:36:55 +0800 Subject: [PATCH] Support NUC472 with USB 2.0 only and set M487 USB1.1 in default --- targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp | 2 -- targets/targets.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp b/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp index 1a6fd8f668..ca59063682 100644 --- a/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp +++ b/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp @@ -36,8 +36,6 @@ static USBPhyHw *instance; #define MBED_CONF_TARGET_USB_DEVICE_HSUSBD 1 /* USB 2.0 Only */ #endif -#undef MBED_CONF_TARGET_USB_DEVICE_HSUSBD -#define MBED_CONF_TARGET_USB_DEVICE_HSUSBD 0 /* USB 1.1 Only */ extern "C" void USBD_IRQHandler(void); diff --git a/targets/targets.json b/targets/targets.json index ed7b3c6e88..09e7b0ce55 100644 --- a/targets/targets.json +++ b/targets/targets.json @@ -8508,7 +8508,7 @@ }, "usb-device-hsusbd": { "help": "Select high-speed USB device or not", - "value": 1 + "value": 0 } }, "inherits": ["Target"],