/* Get the current MCG_Lite LIRC_CLK frequency in Hz. 
This function will return the LIRC_CLK value in frequency(Hz) based on current MCG_Lite configurations and settings. It is an internal function. */
static uint32_t CLOCK_GetLircClkFreq(void)
/* Get the current MCG_Lite LIRC_CLK frequency in Hz. 
This function will return the LIRC_CLK value in frequency(Hz) based on current MCG_Lite configurations and settings. It is an internal function. */
static uint32_t CLOCK_GetLircClkFreq(void)
{
    static const uint32_t lircFreqs[] = {MCG_LIRC_FREQ1, MCG_LIRC_FREQ2};
    if ((MCG->C1 & MCG_C1_IRCLKEN_MASK) || (kMCGLITE_ClkSrcLirc == MCG_S_CLKST_VAL))
    {
        return lircFreqs[MCG_C2_IRCS_VAL];
    }
    else
    {
        return 0U;
    }
}