/* brief Return Frequency of LPFLEXCOMM Clock return Frequency of LPFLEXCOMM Clock.  */
uint32_t CLOCK_GetLPFlexCommClkFreq(uint32_t id)
/* brief Return Frequency of LPFLEXCOMM Clock return Frequency of LPFLEXCOMM Clock.  */
uint32_t CLOCK_GetLPFlexCommClkFreq(uint32_t id)
{
    uint32_t freq = 0U;
    switch (SYSCON->FCCLKSEL[id])
    {
        case 1U:
            freq = CLOCK_GetPllClkDivFreq();
            break;
        case 2U:
            freq = CLOCK_GetFro12MFreq();
            break;
        case 3U:
            freq = CLOCK_GetFroHfFreq() / ((SYSCON->FROHFDIV & 0xffU) + 1U);
            break;
        case 4U:
            freq = CLOCK_GetClk1MFreq();
            break;
        case 5U:
            break;
        case 6U:
            freq = CLOCK_GetLposcFreq();
            break;
        default:
            freq = 0U;
            break;
    }
    return freq / ((SYSCON->FLEXCOMMCLKDIV[id] & 0xffU) + 1U);
}