Functions | |
void | SystemInit (void) |
Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the SystemFrequency variable. | |
void | SystemCoreClockUpdate (void) |
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock (HCLK), it can be used by the user application to setup the SysTick timer or configure other parameters. |
void SystemInit | ( | void | ) |
Setup the microcontroller system Initialize the Embedded Flash Interface, the PLL and update the SystemFrequency variable.
Setup the microcontroller system. Initialize the System and update the SystemFrequency variable.
None |
None |
References FLASH_BASE, RCC, SCB, SetSysClock(), SRAM_BASE, and VECT_TAB_OFFSET.
void SystemCoreClockUpdate | ( | void | ) |
Update SystemCoreClock variable according to Clock Register Values. The SystemCoreClock variable contains the core clock (HCLK), it can be used by the user application to setup the SysTick timer or configure other parameters.
Update SystemCoreClock according to Clock Register Values.
(*) HSI_VALUE is a constant defined in stm32f2xx.h file (default value 16 MHz) but the real value may vary depending on the variations in voltage and temperature.
(**) HSE_VALUE is a constant defined in stm32f2xx.h file (default value 25 MHz), user has to ensure that HSE_VALUE is same as the real frequency of the crystal used. Otherwise, this function may have wrong result.
None |
None |
References HSE_VALUE, HSI_VALUE, RCC, RCC_CFGR_HPRE, RCC_CFGR_SWS, RCC_PLLCFGR_PLLM, RCC_PLLCFGR_PLLN, RCC_PLLCFGR_PLLP, RCC_PLLCFGR_PLLSRC, and SystemCoreClock.