/* Returns the endpoint interrupt status on a given USB controller. */
unsigned long USBIntStatusEndpoint(unsigned long ulBase)
/* Returns the endpoint interrupt status on a given USB controller. */
unsigned long USBIntStatusEndpoint(unsigned long ulBase)
{
    unsigned long ulStatus;
    ASSERT(ulBase == USB0_BASE);
    ulStatus = HWREGH(ulBase + USB_O_TXIS);
    ulStatus |= (HWREGH(ulBase + USB_O_RXIS) << USB_INTEP_RX_SHIFT);
    return(ulStatus);
}