/* The function will return on of the following values:  */
unsigned long USBModeGet(unsigned long ulBase)
/* The function will return on of the following values:  */
unsigned long USBModeGet(unsigned long ulBase)
{
    ASSERT(ulBase == USB0_BASE);
    return(HWREGB(ulBase + USB_O_DEVCTL) &
           (USB_DEVCTL_DEV | USB_DEVCTL_HOST | USB_DEVCTL_SESSION |
            USB_DEVCTL_VBUS_M));
}