/* Acknowledge that data was read from the specified endpoint's FIFO in host mode. */
void USBHostEndpointDataAck(uint32_t ui32Base, uint32_t ui32Endpoint)
/* Acknowledge that data was read from the specified endpoint's FIFO in host mode. */
void USBHostEndpointDataAck(uint32_t ui32Base, uint32_t ui32Endpoint)
{
    ASSERT(ui32Base == USB0_BASE);
    ASSERT((ui32Endpoint == USB_EP_0) || (ui32Endpoint == USB_EP_1) ||
           (ui32Endpoint == USB_EP_2) || (ui32Endpoint == USB_EP_3) ||
           (ui32Endpoint == USB_EP_4) || (ui32Endpoint == USB_EP_5) ||
           (ui32Endpoint == USB_EP_6) || (ui32Endpoint == USB_EP_7));
    if (ui32Endpoint == USB_EP_0)
    {
        HWREGB(ui32Base + USB_O_CSRL0) &= ~USB_CSRL0_RXRDY;
    }
    else
    {
        HWREGB(ui32Base + USB_O_RXCSRL1 + EP_OFFSET(ui32Endpoint)) &=
            ~(USB_RXCSRL1_RXRDY);
    }
}