/* 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)
{
    UDPHS->UDPHS_CTRL &= ~UDPHS_CTRL_DETACH;
    UDPHS->UDPHS_CTRL |=  UDPHS_CTRL_PULLD_DIS;
  } else {
    UDPHS->UDPHS_CTRL |=  UDPHS_CTRL_DETACH;
    UDPHS->UDPHS_CTRL &= ~UDPHS_CTRL_PULLD_DIS;
  }
}