Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
stm32f10x_rcc.c File Reference
This file provides all the RCC firmware functions. More...
Go to the source code of this file.
| Functions | |
| void | RCC_DeInit (void) | 
| Resets the RCC clock configuration to the default reset state. | |
| void | RCC_HSEConfig (uint32_t RCC_HSE) | 
| Configures the External High Speed oscillator (HSE). | |
| ErrorStatus | RCC_WaitForHSEStartUp (void) | 
| Waits for HSE start-up. | |
| void | RCC_AdjustHSICalibrationValue (uint8_t HSICalibrationValue) | 
| Adjusts the Internal High Speed oscillator (HSI) calibration value. | |
| void | RCC_HSICmd (FunctionalState NewState) | 
| Enables or disables the Internal High Speed oscillator (HSI). | |
| void | RCC_PLLConfig (uint32_t RCC_PLLSource, uint32_t RCC_PLLMul) | 
| Configures the PLL clock source and multiplication factor. | |
| void | RCC_PLLCmd (FunctionalState NewState) | 
| Enables or disables the PLL. | |
| void | RCC_PREDIV1Config (uint32_t RCC_PREDIV1_Source, uint32_t RCC_PREDIV1_Div) | 
| Configures the PREDIV1 division factor. | |
| void | RCC_PREDIV2Config (uint32_t RCC_PREDIV2_Div) | 
| Configures the PREDIV2 division factor. | |
| void | RCC_PLL2Config (uint32_t RCC_PLL2Mul) | 
| Configures the PLL2 multiplication factor. | |
| void | RCC_PLL2Cmd (FunctionalState NewState) | 
| Enables or disables the PLL2. | |
| void | RCC_PLL3Config (uint32_t RCC_PLL3Mul) | 
| Configures the PLL3 multiplication factor. | |
| void | RCC_PLL3Cmd (FunctionalState NewState) | 
| Enables or disables the PLL3. | |
| void | RCC_SYSCLKConfig (uint32_t RCC_SYSCLKSource) | 
| Configures the system clock (SYSCLK). | |
| uint8_t | RCC_GetSYSCLKSource (void) | 
| Returns the clock source used as system clock. | |
| void | RCC_HCLKConfig (uint32_t RCC_SYSCLK) | 
| Configures the AHB clock (HCLK). | |
| void | RCC_PCLK1Config (uint32_t RCC_HCLK) | 
| Configures the Low Speed APB clock (PCLK1). | |
| void | RCC_PCLK2Config (uint32_t RCC_HCLK) | 
| Configures the High Speed APB clock (PCLK2). | |
| void | RCC_ITConfig (uint8_t RCC_IT, FunctionalState NewState) | 
| Enables or disables the specified RCC interrupts. | |
| void | RCC_USBCLKConfig (uint32_t RCC_USBCLKSource) | 
| Configures the USB clock (USBCLK). | |
| void | RCC_OTGFSCLKConfig (uint32_t RCC_OTGFSCLKSource) | 
| Configures the USB OTG FS clock (OTGFSCLK). | |
| void | RCC_ADCCLKConfig (uint32_t RCC_PCLK2) | 
| Configures the ADC clock (ADCCLK). | |
| void | RCC_I2S2CLKConfig (uint32_t RCC_I2S2CLKSource) | 
| Configures the I2S2 clock source(I2S2CLK). | |
| void | RCC_I2S3CLKConfig (uint32_t RCC_I2S3CLKSource) | 
| Configures the I2S3 clock source(I2S2CLK). | |
| void | RCC_LSEConfig (uint8_t RCC_LSE) | 
| Configures the External Low Speed oscillator (LSE). | |
| void | RCC_LSICmd (FunctionalState NewState) | 
| Enables or disables the Internal Low Speed oscillator (LSI). | |
| void | RCC_RTCCLKConfig (uint32_t RCC_RTCCLKSource) | 
| Configures the RTC clock (RTCCLK). | |
| void | RCC_RTCCLKCmd (FunctionalState NewState) | 
| Enables or disables the RTC clock. | |
| void | RCC_GetClocksFreq (RCC_ClocksTypeDef *RCC_Clocks) | 
| Returns the frequencies of different on chip clocks. | |
| void | RCC_AHBPeriphClockCmd (uint32_t RCC_AHBPeriph, FunctionalState NewState) | 
| Enables or disables the AHB peripheral clock. | |
| void | RCC_APB2PeriphClockCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) | 
| Enables or disables the High Speed APB (APB2) peripheral clock. | |
| void | RCC_APB1PeriphClockCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) | 
| Enables or disables the Low Speed APB (APB1) peripheral clock. | |
| void | RCC_AHBPeriphResetCmd (uint32_t RCC_AHBPeriph, FunctionalState NewState) | 
| Forces or releases AHB peripheral reset. | |
| void | RCC_APB2PeriphResetCmd (uint32_t RCC_APB2Periph, FunctionalState NewState) | 
| Forces or releases High Speed APB (APB2) peripheral reset. | |
| void | RCC_APB1PeriphResetCmd (uint32_t RCC_APB1Periph, FunctionalState NewState) | 
| Forces or releases Low Speed APB (APB1) peripheral reset. | |
| void | RCC_BackupResetCmd (FunctionalState NewState) | 
| Forces or releases the Backup domain reset. | |
| void | RCC_ClockSecuritySystemCmd (FunctionalState NewState) | 
| Enables or disables the Clock Security System. | |
| void | RCC_MCOConfig (uint8_t RCC_MCO) | 
| Selects the clock source to output on MCO pin. | |
| FlagStatus | RCC_GetFlagStatus (uint8_t RCC_FLAG) | 
| Checks whether the specified RCC flag is set or not. | |
| void | RCC_ClearFlag (void) | 
| Clears the RCC reset flags. | |
| ITStatus | RCC_GetITStatus (uint8_t RCC_IT) | 
| Checks whether the specified RCC interrupt has occurred or not. | |
| void | RCC_ClearITPendingBit (uint8_t RCC_IT) | 
| Clears the RCC's interrupt pending bits. | |
Detailed Description
This file provides all the RCC firmware functions.
- Version:
- V3.5.0
- Date:
- 11-March-2011
- Attention:
THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
© COPYRIGHT 2011 STMicroelectronics 
Definition in file stm32f10x_rcc.c.
Generated on Tue Jul 12 2022 16:02:27 by
 1.7.2
 1.7.2