[−][src]Module stm32f3xx_hal_v2::clocks
This file provides an alternative way to set clocks than in the rcc
modules`,
which may be less error prone, and is more opaque. It works by setting
scalers etc, then calculating frequencies, instead of solving for a set of scalers
that meet specified frequeincies.
See STM32CubeIDE for an interactive editor that's very useful for seeing what settings are available, and validating them.
See Figure 15 of theF303 reference manual for a non-interactive visualization.
Structs
Clocks | Settings used to configure clocks |
SpeedError | Speed out of limits. |
Speeds | Calculated clock speeds. All in Mhz |
Enums
ApbPrescaler | For use with |
HclkPrescaler | Division factor for the AHB clock. Also known as AHB Prescaler. |
InputSrc | |
PllMul | |
PllSrc | Note that this corresponds to Bits 16:15: Applicable only to some models, 303xB/C etc use only bit 16, with bit 15 at reset value (0?) but it's equiv. 303xD/E and xE use bits 16:15. |
Prediv | RCC_cfgr2 |
UsbPrescaler | |
Validation | Is a set of speeds valid? |
Functions
validate | Validate resulting speeds from a given clock config Main validation, USB validation |