[][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 RCC_APBPPRE1, and RCC_APBPPRE2.

HclkPrescaler

Division factor for the AHB clock.

InputSrc
PllMul
PllSrc
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