/* Reset Endpoint Parameters: EPNum: Endpoint Number EPNum.0..3: Address EPNum.7: Dir Return Value: None  */
void EP_Reset(U32 EPNum)
/* Reset Endpoint Parameters: EPNum: Endpoint Number EPNum.0..3: Address EPNum.7: Dir Return Value: None  */
void EP_Reset(U32 EPNum)
{
    U32 num, val;
    num = EPNum & 0x0F;
    val = EPxREG(num);
    if (EPNum & 0x80) {
        EPxREG(num) = val & (EP_MASK | EP_DTOG_TX);
    } else {
        EPxREG(num) = val & (EP_MASK | EP_DTOG_RX);
    }
}