diff --git a/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp b/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp index 26b04130c80..d0671cdc58a 100644 --- a/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp +++ b/targets/TARGET_NUVOTON/USBEndpoints_Nuvoton.cpp @@ -37,6 +37,7 @@ static USBPhyHw *instance; #define MBED_CONF_TARGET_USB_DEVICE_HSUSBD 1 /* USB 2.0 Only */ #endif +#if defined(DEVICE_USBDEVICE) && (DEVICE_USBDEVICE == 1) extern "C" void USBD_IRQHandler(void); @@ -2374,3 +2375,5 @@ extern "C" void USBD_IRQHandler(void) } #endif + +#endif \ No newline at end of file