Expand description
Reset and Clock Control (RCC)
Modules§
Structs§
- Clocks
- Comp
Vals - 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
- Hsi48
Config - Configuration for the HSI48 clock
- LsConfig
- LseConfig
- Mco
- McoConfig
- Pll
- Wake
Guard
Enums§
- AHBPrescaler
- APBPrescaler
- HSIPrescaler
- HseMode
- LseDrive
- LseMode
- Mco1
Source - Mco2
Source - McoPrescaler
- PllDiv
- PllDiv
St - PllMul
- PllPre
Div - PllSource
- RtcClock
Source - SMPS
Supply Voltage - SMPS step-down converter voltage output level. This is only used in certain power supply configurations: SMPSLDO, SMPSExternalLDO, SMPSExternalLDOBypass.
- Supply
Config - Power supply configuration See RM0433 Rev 4 7.4
- Sysclk
- Timer
Prescaler - Timer prescaler
- Voltage
Scale
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-stm32clock 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”)