/* 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)
{
    uint32_t num;
    num      = pEPD->bEndpointAddress & 0x0F;
    if (pEPD->wMaxPacketSize <= USBD_GetSizeEP(num)) {
        UDPHS->UDPHS_EPT[num].UDPHS_EPTCTLENB =
            (0x1 <<  9) |
            (0x1 << 10) |
            (0x0 <<  4) |
            (0x1 << 13) ;
    }
}