// Checks whether the specified RCC flag is set or not
// Wait till PLL is ready
while(RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET);
// Select PLL as system clock source
RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK);
// Get System Clock Source
// Wait till PLL is used as system clock source
while(RCC_GetSYSCLKSource() != 0x08);
}
/* Enable Clock Security System(CSS) */
RCC_ClockSecuritySystemCmd(ENABLE); //new add:css(时钟安全系统),外部晶振失效时可以切换到HSI(内部RC)
}