embassy-stm32

Crates

git

Versions

stm32h7r7l8

Flavors

Module rcc

Module rcc 

Source
Expand description

Reset and Clock Control (RCC)

Modules§

mux

Structs§

Clocks
CompVals
Compensation cell calibration values. The N-MOS and P-MOS transistors slew rate compensation factors are stored for the three different compensation cells available in the STM32H7RS family.
Config
Configuration of the core clocks
Hse
Hsi48Config
Configuration for the HSI48 clock
LsConfig
LseConfig
Mco
McoConfig
Pll
WakeGuard

Enums§

AHBPrescaler
APBPrescaler
HSIPrescaler
HseMode
LseDrive
LseMode
Mco1Source
Mco2Source
McoPrescaler
PllDiv
PllDivSt
PllMul
PllPreDiv
PllSource
RtcClockSource
SMPSSupplyVoltage
SMPS step-down converter voltage output level. This is only used in certain power supply configurations: SMPSLDO, SMPSExternalLDO, SMPSExternalLDOBypass.
SupplyConfig
Power supply configuration See RM0433 Rev 4 7.4
Sysclk
TimerPrescaler
Timer prescaler
Usbphycsel
Usbrefcksel
VoltageScale

Constants§

CSI_FREQ
CSI speed
HSI48_FREQ
HSI48 speed
HSI_FREQ
HSI speed
LSI_FREQ

Traits§

McoInstance
McoPin
McoPin pin trait
RccPeripheral

Functions§

clocks
Get the current clock configuration of the chip.
disable
Disables peripheral T.
disable_with_cs
Disables peripheral T.
enable_and_reset
Enables and resets peripheral T.
enable_and_reset_with_cs
Enables and resets peripheral T.
enable_with_cs
Enables and clears the reset for peripheral T.
frequency
Get the kernel clock frequency of the peripheral T.
get_corrected_comp_vals
Obtain the auto-tuned, slew-rate compensation values for the different compensation cells. The errata corrections are applied. Following the errata, these values should be obtained once during production, around 30°C MCU temperature, for each individual board, and stored in non-volatile memory for future use. The stored values should then be applied at power-up to guarantee stable, high-speed operation of the XSPI busses, and other high-speed I/O. While ST does not discuss the application to the GPIO pins in general in the errata, applying the errata compensation to those as well seems to improve the waveform symmetry (eg: MCO). (ES0596, p. 12, Ch 2.2.15 “I/O compensation could alter duty-cycle of high-frequency output signal”)
reinit
Re-initialize the embassy-stm32 clock configuration with the provided configuration.
set_and_enable_comp_vals
Apply static slew-rate compensation values to all compensation cells, and enable them. These should be the corrected values outlined in the errata. (ES0596, p. 12, Ch 2.2.15 “I/O compensation could alter duty-cycle of high-frequency output signal”)