|
STM32 core 3.0.1-dev
Arduino core for STM32 based boards: API reference
|
← STM32duino documentation
|
Functions | |
| void | SystemInit (void) |
| Setup the microcontroller system. | |
| void | SystemCoreClockUpdate (void) |
| Update SystemCoreClock variable according to Clock Register Values. | |
| 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.
(*) PSI_VALUE is one of the value [100, 144, 160] MHz. The value of PSI can change slightly depending on the clock source reference of the PSI.
(**) HSI_VALUE is a constant defined in stm32c5xxxx.h file (default value 144 MHz) but the real value can vary depending on the variations in voltage and temperature.
(***) HSE_VALUE is a constant defined in stm32_external_env.h file (default value 24 MHz or 48MHz), user has to ensure that HSE_VALUE is same as the real frequency of the crystal used. Otherwise, this function can have wrong result.