/* Disable USB Endpoint Parameters: EPNum: Endpoint Number EPNum.0..3: Address EPNum.7: Dir Return Value: None  */
void USBD_DisableEP(U32 EPNum)
/* Disable USB Endpoint Parameters: EPNum: Endpoint Number EPNum.0..3: Address EPNum.7: Dir Return Value: None  */
void USBD_DisableEP(U32 EPNum)
{
    uint32_t u32Ep, u32Num;
    u32Num = EPNum & 0x0F;
    u32Ep = USBD_NUM_TO_EP(u32Num);
    HSUSBD->GINTEN &= ~(0x1UL << (HSUSBD_GINTEN_EPAIEN_Pos + (u32Num - USBD_EP_TO_NUM(EPA))));
    HSUSBD_ENABLE_EP_INT(u32Ep, 0);
}