/* brief Return Frequency of Adc Clock return Frequency of Adc.  */
uint32_t CLOCK_GetAdcClkFreq(void)
/* brief Return Frequency of Adc Clock return Frequency of Adc.  */
uint32_t CLOCK_GetAdcClkFreq(void)
{
    uint32_t freq = 0U;
    switch (SYSCON->ADCCLKSEL)
    {
        case 0U:
            freq = CLOCK_GetCoreSysClkFreq();
            break;
        case 1U:
            freq = CLOCK_GetPll0OutFreq();
            break;
        case 2U:
            freq = CLOCK_GetFroHfFreq();
            break;
        case 7U:
            freq = 0U;
            break;
        default:
            assert(false);
            break;
    }
    return freq / ((SYSCON->ADCCLKDIV & SYSCON_ADCCLKDIV_DIV_MASK) + 1U);
}