/* The following two optional settings allow an application to immediately enable the DMA transfer and/or DMA interrupts when configuring the DMA channel: */
void USBDMAChannelConfigSet(uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, uint32_t ui32Config)
/* The following two optional settings allow an application to immediately enable the DMA transfer and/or DMA interrupts when configuring the DMA channel: */
void USBDMAChannelConfigSet(uint32_t ui32Base, uint32_t ui32Channel, uint32_t ui32Endpoint, uint32_t ui32Config)
{
    ASSERT(ui32Base == USB0_BASE);
    ASSERT(ui32Channel < 8);
    ASSERT((ui32Endpoint & ~USB_EP_7) == 0);
    HWREG(ui32Base + USB_O_DMACTL0 + (0x10 * ui32Channel)) = 0;
    HWREG(ui32Base + USB_O_DMACTL0 + (0x10 * ui32Channel)) =
        ui32Config | ui32Endpoint;
}