/* brief Return Frequency of Usb0 Clock return Frequency of Usb0 Clock.  */
uint32_t CLOCK_GetUsb0ClkFreq(void)
/* brief Return Frequency of Usb0 Clock return Frequency of Usb0 Clock.  */
uint32_t CLOCK_GetUsb0ClkFreq(void)
{
    uint32_t freq = 0U;
    switch (SYSCON->USB0CLKSEL)
    {
        case 0U:
            freq = CLOCK_GetCoreSysClkFreq();
            break;
        case 1U:
            freq = CLOCK_GetPll0OutFreq();
            break;
        case 3U:
            freq = CLOCK_GetFroHfFreq();
            break;
        case 5U:
            freq = CLOCK_GetPll1OutFreq();
            break;
        case 7U:
            freq = 0U;
            break;
        default:
            assert(false);
            break;
    }
    return freq / ((SYSCON->USB0CLKDIV & 0xffU) + 1U);
}