/* USB Device Remote Wakeup Function Called automatically on USB Device Remote Wakeup Return Value: None  */
void USBD_WakeUp(void)
/* USB Device Remote Wakeup Function Called automatically on USB Device Remote Wakeup Return Value: None  */
void USBD_WakeUp(void)
{
    uint32_t i = 50000;
    if (USBD_DeviceStatus & USB_GETSTATUS_REMOTE_WAKEUP) {
        USB0->CTL |=  USB_CTL_RESUME_MASK;
        while (i--) {
            __NOP();
        }
        USB0->CTL &= ~USB_CTL_RESUME_MASK;
    }
}