|
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.
(*) MSI_VALUE is a constant defined in stm32wbxx_hal.h file (default value 4 MHz) but the real value may vary depending on the variations in voltage and temperature.
(**) HSI_VALUE is a constant defined in stm32wbxx_hal_conf.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 stm32wbxx_hal_conf.h file (default value 32 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.
| void SystemInit | ( | void | ) |
Setup the microcontroller system.
< Reset LSI1 and LSI2 bits
< Reset HSI48ON bit