Module stm32_hal2::clocks[][src]

This module contains clock configurations for various MCUs. They tend to be significantly different from one another, so we’ve feature-gated these files, rather than code within the files, to differentiate families.

See STM32CubeIDE for an interactive editor that’s very useful for seeing what settings are available, and validating them.

See the Reference Manuals for non-interactive visualizations.

Structs

Clocks

Settings used to configure clocks.

SpeedError

Speed out of limits.

Enums

ApbPrescaler

For use with RCC_APBPPRE1, and RCC_APBPPRE2. Ie, low-speed and high-speed prescalers respectively.

Clk48Src
HclkPrescaler

Division factor for the AHB clock. Also known as AHB Prescaler. L4 RM, 6.4.3

InputSrc
MsiRange

Specify the range of MSI - this is effectively it’s oscillation speed.

PllSrc
Pllm
Pllr
Prediv

RCC_cfgr2

StopWuck

Select the system clock used when exiting Stop mode