Skip to content

Struct hal::stm32f1::clock_tree

ClassList > hal > stm32f1 > clock_tree

Classes

Type Name
struct ahb_t
Defines the configuration of the dividers beyond system clock mux.
struct pll_t
Defines the configuration of the PLL.
struct rtc_t
Defines the configuration for the RTC.

Public Attributes

Type Name
struct hal::stm32f1::clock_tree::ahb_t ahb = = {}
hal::hertz high_speed_external = = 0.0_MHz
Defines the frequency of the high speed external clock signal.
hal::hertz low_speed_external = = 0.0_MHz
Defines the frequency of the low speed external clock signal.
struct hal::stm32f1::clock_tree::pll_t pll = = {}
struct hal::stm32f1::clock_tree::rtc_t rtc = = {}
system_clock_select system_clock = = system_clock_select::high_speed_internal

Public Attributes Documentation

variable ahb

struct hal::stm32f1::clock_tree::ahb_t hal::stm32f1::clock_tree::ahb;

variable high_speed_external

hal::hertz hal::stm32f1::clock_tree::high_speed_external;

variable low_speed_external

hal::hertz hal::stm32f1::clock_tree::low_speed_external;

variable pll

struct hal::stm32f1::clock_tree::pll_t hal::stm32f1::clock_tree::pll;

variable rtc

struct hal::stm32f1::clock_tree::rtc_t hal::stm32f1::clock_tree::rtc;

variable system_clock

system_clock_select hal::stm32f1::clock_tree::system_clock;

Defines which clock source will be use for the system.

Warning:

System will lock up in the following situations: * Select PLL, but PLL is not enabled * Select PLL, but PLL frequency is too high * Select High Speed External, but the frequency is kept at 0_Mhz.


The documentation for this class was generated from the following file libraries/include/libhal-stm32f1/clock.hpp