/* Configure USB Device Endpoint according to Descriptor Parameters: pEPD: Pointer to Device Endpoint Descriptor Return Value: None  */
void USBD_ConfigEP(USB_ENDPOINT_DESCRIPTOR *pEPD)
/* Configure USB Device Endpoint according to Descriptor Parameters: pEPD: Pointer to Device Endpoint Descriptor Return Value: None  */
void USBD_ConfigEP(USB_ENDPOINT_DESCRIPTOR *pEPD)
{
    UDPHS->UDPHS_EPT[num].UDPHS_EPTCFG    = (interval << 8) |
                                            (bank     << 6) |
                                            (type     << 4) |
                                            (dir      << 3) |
                                            (size     << 0) ;
    UDPHS->UDPHS_EPT[num].UDPHS_EPTCTLENB = 
      (0x1 <<  9) |
      (0x1 << 10) |
      (0x1 <<  4) |
      (0x1 << 13) ;
  }
}