/* Find out frequency generated by the 25_50mhz RC osciallator.  */
static uint32_t get_rcosc_25_50mhz_frequency(void)
/* Find out frequency generated by the 25_50mhz RC osciallator.  */
static uint32_t get_rcosc_25_50mhz_frequency(void)
{
    uint32_t rcosc_div2;
    uint32_t rcosc_frequency;
    rcosc_div2 = SYSREG->MSSDDR_PLL_STATUS & RCOSC_DIV2_MASK;
    if(0u == rcosc_div2)
    {
        rcosc_frequency = FREQ_25MHZ;
    }
    else
    {
        rcosc_frequency = FREQ_50MHZ;
    }
    return rcosc_frequency;
}