/* 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) {
        USBHSD->DEVCMDSTAT &= ~USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_MASK;
    } else {
        USBHSD->DEVCMDSTAT |= USBHSD_DEVCMDSTAT_FORCE_NEEDCLK_MASK;
        SYSCON->USB1NEEDCLKCTRL = 0;
    }
}