/* USB Device Connect Function Called by the User to Connect/Disconnect USB Device Parameters: con: Connect/Disconnect Return Value: None  */
void USBD_Connect(BOOL con)
/* USB Device Connect Function Called by the User to Connect/Disconnect USB Device Parameters: con: Connect/Disconnect Return Value: None  */
void USBD_Connect(BOOL con)
{
    if (con) {
        USB0->CTL  |= USB_CTL_USBENSOFEN_MASK;
        USB0->CONTROL = USB_CONTROL_DPPULLUPNONOTG_MASK;
    } else {
        USB0->CTL  &= ~USB_CTL_USBENSOFEN_MASK;
        USB0->CONTROL &= ~USB_CONTROL_DPPULLUPNONOTG_MASK;
    }
}