/*FUNCTION********************************************************************** * * Function Name : CLOCK_SYS_GetRtcOutFreq * Description : Gets the RTC_CLKOUT frequency. * This function gets RTC_CLKOUT clock frequency. * *END**************************************************************************/ uint32_t CLOCK_SYS_GetRtcOutFreq(void) { if (kClockRtcoutSrc1Hz == CLOCK_SYS_GetRtcOutSrc()) { return CLOCK_SYS_GetExternalRefClock32kFreq() >> 15U; } else { return CLOCK_SYS_GetOsc0ExternalRefClockFreq();
/*FUNCTION********************************************************************** * * Function Name : CLOCK_SYS_GetRtcOutFreq * Description : Gets the RTC_CLKOUT frequency. * This function gets RTC_CLKOUT clock frequency. * *END**************************************************************************/ uint32_t CLOCK_SYS_GetRtcOutFreq(void) { if (kClockRtcoutSrc1Hz == CLOCK_SYS_GetRtcOutSrc()) { return g_xtalRtcClkFreq >> 15U; } else { return g_xtalRtcClkFreq;
/*FUNCTION********************************************************************** * * Function Name : CLOCK_SYS_GetRtcOutFreq * Description : Gets the RTC_CLKOUT frequency. * This function gets RTC_CLKOUT clock frequency. * *END**************************************************************************/ uint32_t CLOCK_SYS_GetRtcOutFreq(void) { #if FSL_FEATURE_SIM_OPT_HAS_RTC_CLOCK_OUT_SELECTION if (kClockRtcoutSrc1Hz == CLOCK_SYS_GetRtcOutSrc()) { return CLOCK_SYS_GetExternalRefClock32kFreq() >> 15U; } else { #endif return CLOCK_SYS_GetOsc0ExternalRefClockFreq();