/* 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)
{
    U32 EPNum;
    EPNum = pEPD->bEndpointAddress & EPNUM_MASK;
    if (EPNum < MXC_USB_NUM_EP) {
        MXC_USB->ep[EPNum] = MXC_F_USB_EP_DT;
        if (pEPD->bEndpointAddress & USB_ENDPOINT_DIRECTION_MASK) {
            ep_info[EPNum].type = MXC_S_USB_EP_DIR_IN;
        } else {
            ep_info[EPNum].type = MXC_S_USB_EP_DIR_OUT;
        }
        ep_info[EPNum].len = pEPD->wMaxPacketSize;
    }
}