typedef struct
{
uint32_t OscillatorType; //时钟源类型
uint32_t HSEState; //HSE的状态位
uint32_t LSEState;
uint32_t HSIState;
uint32_t HSICalibrationValue;
uint32_t LSIState;
RCC_PLLInitTypeDef PLL;
}RCC_OscInitTypeDef;
![在这里插入图片描述](https://img-blog.csdnimg.cn/20201226100114513.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM2NDgwMDA3,size_16,color_FFFFFF,t_70
typedef struct
{
uint32_t ClockType; //需要配置的时钟源
uint32_t SYSCLKSource; //选择系统时钟源
uint32_t AHBCLKDivider; //AHB分频系数
uint32_t APB1CLKDivider; //APB1分频系数
uint32_t APB2CLKDivider; //APB2分频系数
}RCC_ClkInitTypeDef;