/* Enables endpoint interrupts on a given USB controller. */
void USBIntEnableEndpoint(uint32_t ui32Base, uint32_t ui32Flags)
/* Enables endpoint interrupts on a given USB controller. */
void USBIntEnableEndpoint(uint32_t ui32Base, uint32_t ui32Flags)
{
    ASSERT(ui32Base == USB0_BASE);
    HWREGH(ui32Base + USB_O_TXIE) |=
        ui32Flags & (USB_INTEP_HOST_OUT | USB_INTEP_DEV_IN | USB_INTEP_0);
    HWREGH(ui32Base + USB_O_RXIE) |=
        ((ui32Flags & (USB_INTEP_HOST_IN | USB_INTEP_DEV_OUT)) >>
         USB_INTEP_RX_SHIFT);
}