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