/* Disable endpoint interrupts on a given USB controller. */
void USBIntDisableEndpoint(unsigned long ulBase, unsigned long ulFlags)
/* Disable endpoint interrupts on a given USB controller. */
void USBIntDisableEndpoint(unsigned long ulBase, unsigned long ulFlags)
{
    ASSERT(ulBase == USB0_BASE);
    HWREGH(ulBase + USB_O_TXIE) &=
        ~(ulFlags & (USB_INTEP_HOST_OUT | USB_INTEP_DEV_IN | USB_INTEP_0));
    HWREGH(ulBase + USB_O_RXIE) &=
        ~((ulFlags & (USB_INTEP_HOST_IN | USB_INTEP_DEV_OUT)) >>
          USB_INTEP_RX_SHIFT);
}