/* Get the frequency of clock selected by MCG_C2. 
This clock's two output: */
static uint32_t CLOCK_GetInternalRefClkSelectFreq(void)
/* Get the frequency of clock selected by MCG_C2. 
This clock's two output: */
static uint32_t CLOCK_GetInternalRefClkSelectFreq(void)
{
    if (kMCG_IrcSlow == MCG_S_IRCST_VAL)
    {
        return s_slowIrcFreq;
    }
    else
    {
        return s_fastIrcFreq >> MCG_SC_FCRDIV_VAL;
    }
}