/* brief Initialize the external osc clock to given frequency. 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. 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;
}