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