Reset and clock control (RCC)
ï€ Check that the new number of WS is taken into account by reading FLASH_ACR
ï€ Modify the CPU clock source, using "RCC_SYSCLKConfig()" function
ï€ If needed, modify the CPU clock prescaler by using "RCC_HCLKConfig()"
function
ï€ Check that the new CPU clock source is taken into account by reading the clock
source status, using "RCC_GetSYSCLKSource()" function
ï‚· Decreasing the CPU frequency
ï€ Modify the CPU clock source, using "RCC_SYSCLKConfig()" function
ï€ If needed, modify the CPU clock prescaler by using "RCC_HCLKConfig()"
function
ï€ Check that the new CPU clock source is taken into account by reading the clock
source status, using "RCC_GetSYSCLKSource()" function
ï€ Program the new number of WS, using "FLASH_SetLatency()" function
ï€ Check that the new number of WS is taken into account by reading FLASH_ACR
ï€ Disable the Flash Prefetch buffer using "FLASH_PrefetchBufferCmd(DISABLE)"
function
ï€ Check that Flash Prefetch buffer deactivation is taken into account by reading
FLASH_ACR using the FLASH_GetPrefetchBufferStatus() function.
ï‚· RCC_SYSCLKConfig()
ï‚· RCC_GetSYSCLKSource()
ï‚· RCC_HCLKConfig()
ï‚· RCC_PCLK1Config()
ï‚· RCC_PCLK2Config()
ï‚· RCC_GetClocksFreq()
18.2.4 Peripheral clocks configuration functions
This section provide functions allowing to configure the Peripheral clocks.
1. The RTC clock which is derived from the LSE, LSI or HSE_Div32 (HSE divided by
32).
2. After restart from Reset or wakeup from STANDBY, all peripherals are off except
internal SRAM, Flash and SWD. Before to start using a peripheral you have to enable
its interface clock. You can do this using RCC_AHBPeriphClockCmd(),
RCC_APB2PeriphClockCmd() and RCC_APB1PeriphClockCmd() functions.
3. To reset the peripherals configuration (to the default state after device reset) you can
use RCC_AHBPeriphResetCmd(), RCC_APB2PeriphResetCmd() and
RCC_APB1PeriphResetCmd() functions.
ï‚· RCC_ADCCLKConfig()
ï‚· RCC_I2CCLKConfig()
ï‚· RCC_TIMCLKConfig()
ï‚· RCC_USARTCLKConfig()
ï‚· RCC_USBCLKConfig()
ï‚· RCC_RTCCLKConfig()
ï‚· RCC_I2SCLKConfig()
ï‚· RCC_RTCCLKCmd()
ï‚· RCC_BackupResetCmd()
ï‚· RCC_AHBPeriphClockCmd()
ï‚· RCC_APB2PeriphClockCmd()
ï‚· RCC_APB1PeriphClockCmd()
ï‚· RCC_AHBPeriphResetCmd()
ï‚· RCC_APB2PeriphResetCmd()
ï‚· RCC_APB1PeriphResetCmd()