/* brief Return Frequency of Can Clock return Frequency of Can.  */
uint32_t CLOCK_GetMCanClkFreq(void)
/* brief Return Frequency of Can Clock return Frequency of Can.  */
uint32_t CLOCK_GetMCanClkFreq(void)
{
    uint32_t freq = 0U;
    switch (SYSCON->CANCLKSEL)
    {
        case 0U:
            freq = CLOCK_GetCoreSysClkFreq() / ((SYSCON->CANCLKDIV & SYSCON_CANCLKDIV_DIV_MASK) + 1U);
            break;
        case 1U:
            freq = CLOCK_GetFro1MFreq();
            break;
        case 2U:
            freq = CLOCK_GetOsc32KFreq();
            break;
        case 7U:
            freq = 0U;
            break;
        default:
            freq = 0U;
            break;
    }
    return freq;
}