/* Update the Variable SystemCoreClock. 
This function is used to update the variable SystemCoreClock and must be called whenever the core clock is changed.  */
void SystemCoreClockUpdate(void)
/* Update the Variable SystemCoreClock. 
This function is used to update the variable SystemCoreClock and must be called whenever the core clock is changed.  */
void SystemCoreClockUpdate(void)
{
    PllClock = CLK_GetPLLClockFreq();
    SystemCoreClock = CLK_GetCPUFreq();
    CyclesPerUs = (SystemCoreClock + 500000UL) / 1000000UL;
}