/* On devices that support the VBUS glitch filter, the  */
void USBHostPwrConfig(uint32_t ui32Base, uint32_t ui32Flags)
/* On devices that support the VBUS glitch filter, the  */
void USBHostPwrConfig(uint32_t ui32Base, uint32_t ui32Flags)
{
    ASSERT(ui32Base == USB0_BASE);
    ASSERT((ui32Flags & ~(USB_HOST_PWREN_FILTER | USB_EPC_PFLTACT_M |
                          USB_EPC_PFLTAEN | USB_EPC_PFLTSEN_HIGH |
                          USB_EPC_EPEN_M)) == 0);
    HWREG(ui32Base + USB_O_VDC) = ui32Flags >> 16;
    HWREGH(ui32Base + USB_O_EPC) =
        (ui32Flags | (HWREGH(ui32Base + USB_O_EPC) &
                      ~(USB_EPC_PFLTACT_M | USB_EPC_PFLTAEN |
                        USB_EPC_PFLTSEN_HIGH | USB_EPC_EPEN_M)));
}