/* USB Device Remote Wakeup Configuration Function Parameters: cfg: Device Enable/Disable Return Value: None  */
void USBD_WakeUpCfg(BOOL cfg)
/* USB Device Remote Wakeup Configuration Function Parameters: cfg: Device Enable/Disable Return Value: None  */
void USBD_WakeUpCfg(BOOL cfg)
{
    if (cfg == __TRUE) {
        LPC_USB->DEVCMDSTAT &= ~(1UL << 9);
    } else {
        LPC_USB->DEVCMDSTAT |= (1UL << 9);
        LPC_SYSCON->USBCLKCTRL = 0;
    }
}