RCC库函数
函数名称 | 函数作用 |
void RCC_DeInit(void) | 将RCC时钟配置重置为默认复位状态 |
void RCC_HSEConfig(uint32_t RCC_HSE) | 配置外部高速振荡器 |
ErrorStatus RCC_WaitForHSEStartUp(void) | 等待HSE启动 |
void RCC_AdjustHSICalibrationValue(uint8_t HSICalibrationValue) | 调整内部高速振荡器校准值 |
void RCC_HSICmd(FunctionalState NewState) | 启动或者禁用内部高速振荡器 |
void RCC_PLLConfig(uint32_t RCC_PLLSource, uint32_t RCC_PLLMul) | 配置PLL时钟源和分频因子 |
void RCC_PLLCmd(FunctionalState NewState) | 使能或禁用PLL(PLL用作系统时钟时,不可禁用) |
void RCC_SYSCLKConfig(uint32_t RCC_SYSCLKSource) | 配置系统时钟源 |
uint8_t RCC_GetSYSCLKSource(void) | 返回作为系统时钟使用的时钟源 |
void RCC_HCLKConfig(uint32_t RCC_SYSCLK) | 配置AHB时钟(HCLK) |
void RCC_PCLK1Config(uint32_t RCC_HCLK) | 配置低速APB时钟(PCLK1) |
void RCC_PCLK2Config(uint32_t RCC_HCLK) | 配置高速APB时钟(PCLK2) |
void RCC_ITConfig(uint8_t RCC_IT, FunctionalState NewState) | 启动或者禁用指定的RCC中断 |
void RCC_USBCLKConfig(uint32_t RCC_USBCLKSource) | 配置USB时钟 |
void RCC_ADCCLKConfig(uint32_t RCC_PCLK2) | 配置ADC时钟 |
void RCC_LSEConfig(uint8_t RCC_LSE) | 配置外部低速振荡器 |
void RCC_LSICmd(FunctionalState NewState) | 使能或禁用LSI |
void RCC_RTCCLKConfig(uint32_t RCC_RTCCLKSource) | 指定RTC时钟源 |
void RCC_RTCCLKCmd(FunctionalState NewState) | 启用或者禁用RTC(使用在)RCC_RTCCLKConfig()函数后 |
void RCC_GetClocksFreq(RCC_ClocksTypeDef *RCC_Clocks) | 当对HSE振荡器使用分数值时,此函数的结果可能不正确 |
void RCC_AHBPeriphClockCmd(uint32_t RCC_AHBPeriph, FunctionalState NewState) | 启动或者禁用AHB外设时钟 |
void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) | 启动或者禁用APB2外设时钟 |
void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) | 启动或者禁用APB1外设时钟 |
void RCC_APB2PeriphResetCmd(uint32_t RCC_APB2Periph, FunctionalState NewState) | 强制或释放高速APB(APB2)外围复用 |
void RCC_APB1PeriphResetCmd(uint32_t RCC_APB1Periph, FunctionalState NewState) | 强制或释放高速APB(APB1)外围复用 |
void RCC_BackupResetCmd(FunctionalState NewState) | 强制或释放Backup域重置 |
void RCC_ClockSecuritySystemCmd(FunctionalState NewState) | 启动或者禁用时钟安全系统 |
void RCC_MCOConfig(uint8_t RCC_MCO) | 选择时钟源输出到Mco引脚 |
FlagStatus RCC_GetFlagStatus(uint8_t RCC_FLAG) | 检查是否设置指定的RCC标志 |
ITStatus RCC_GetITStatus(uint8_t RCC_IT) | 检查指定的RCC中断是否发生 |
void RCC_ClearFlag(void) | 清除RCC复位标志 |
void RCC_ClearITPendingBit(uint8_t RCC_IT) | 清除RCC中断挂起位 |