/* brief Initialize the external osc clock to given frequency. Crystal oscillator with an operating frequency of 12 MHz to 32 MHz. Option for external clock input (bypass mode) for clock frequencies of up to 25 MHz. param iFreq : Desired frequency (must be equal to exact rate in Hz) return returns success or fail status.  */
status_t CLOCK_SetupExtClocking(uint32_t iFreq)
/* brief Initialize the external osc clock to given frequency. Crystal oscillator with an operating frequency of 12 MHz to 32 MHz. Option for external clock input (bypass mode) for clock frequencies of up to 25 MHz. param iFreq : Desired frequency (must be equal to exact rate in Hz) return returns success or fail status.  */
status_t CLOCK_SetupExtClocking(uint32_t iFreq)
{
    if (iFreq > 32000000U)
    {
        return kStatus_Fail;
    }
    POWER_DisablePD(kPDRUNCFG_PD_XTAL32M);
    POWER_DisablePD(kPDRUNCFG_PD_LDOXO32M);
    SYSCON->CLOCK_CTRL |= SYSCON_CLOCK_CTRL_CLKIN_ENA_MASK;
    s_Ext_Clk_Freq = iFreq;
    return kStatus_Success;
}