Interface for configuring the clock tree of STM32 CPUs. More...
Interface for configuring the clock tree of STM32 CPUs.
Definition in file stmclk.h.
Go to the source code of this file.
void | stmclk_init_sysclk (void) |
Configure the high speed clock domain (main system clock) More... | |
void | stmclk_enable_hsi (void) |
Enable the internal high speed clock (HSI) | |
void | stmclk_disable_hsi (void) |
Disable the internal high speed clock (HSI) More... | |
void | stmclk_enable_lfclk (void) |
Configure and enable the low speed clock domain. More... | |
void | stmclk_disable_lfclk (void) |
Disable the low frequency clock domain. More... | |
void | stmclk_dbp_unlock (void) |
Unlock write access to the backup domain control. | |
void | stmclk_dbp_lock (void) |
Lock write access to backup control domain. | |
void stmclk_disable_hsi | ( | void | ) |
Disable the internal high speed clock (HSI)
void stmclk_disable_lfclk | ( | void | ) |
Disable the low frequency clock domain.
void stmclk_enable_lfclk | ( | void | ) |
Configure and enable the low speed clock domain.
The actual clock used as input for the low frequency clock can be either the external low speed clock (LSE) or the internal low speed clock (LSI). This is configured in the board's periph_conf.h file.
void stmclk_init_sysclk | ( | void | ) |
Configure the high speed clock domain (main system clock)
This function initializes and configures the main systems clock(s). For this, the following actions are carried out:
All of these options are configurable through the board's periph_conf.h