/* returns the clock source used as system clock  */
RCM_SYSCLK_SEL_T RCM_ReadSYSCLKSource(void)
/* returns the clock source used as system clock  */
RCM_SYSCLK_SEL_T RCM_ReadSYSCLKSource(void)
{
    RCM_SYSCLK_SEL_T sysClock;
    sysClock = (RCM_SYSCLK_SEL_T)RCM->CFG1_B.SCLKSWSTS;
    return sysClock;
}