Expand description
Reset and Clock Control (RCC)
Modules§
Structs§
- Clocks
- Config
- Configuration of the core clocks
- Hse
- Hsi
- HsiCalibration
- IcConfig
- Configuration for an internal clock (IC) divider.
- LsConfig
- LseConfig
- Mco
- McoConfig
- Msi
- Wake
Guard
Enums§
- AhbPrescaler
- ApbPrescaler
- CpuClk
- HseMode
- HsiPrescaler
- Icint
- Icsel
- LseDrive
- LseMode
- Mco1
Source - Mco2
Source - McoPrescaler
- Pll
- Plldivm
- Pllpdiv
- Pllsel
- RtcClock
Source - Supply
Config - SysClk
- Xspi
ClkSrc
Constants§
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. - promote_
axi_ masters_ to_ secure - Convenience wrapper: promote both DMA2D and LTDC (the LCD framebuffer path).
Equivalent to calling
promote_dma2d+promote_ltdc. - promote_
dcmipp - Promote DCMIPP camera pipeline (M=9, RISUP=93).
- promote_
dma2d - Promote DMA2D Chrom-ART (M=8, RISUP=101).
- promote_
eth1 - Promote the Ethernet GMAC (M=6, RISUP=60).
- promote_
gpdma1_ all - Promote all 16 GPDMA1 channels at once.
- promote_
gpdma1_ all_ cid - Set CID=1 + filtering on all 16 GPDMA1 channels.
- promote_
gpdma1_ channel - Promote a single GPDMA1 channel to secure + privileged.
- promote_
gpdma1_ channel_ cid - Set GPDMA1 channel
channel’s CID to 1 with filtering enabled. - promote_
hpdma1_ all - Promote all 16 HPDMA1 channels at once.
- promote_
hpdma1_ all_ cid - Set CID=1 + filtering on all 16 HPDMA1 channels.
- promote_
hpdma1_ channel - Promote a single HPDMA1 channel to secure + privileged.
- promote_
hpdma1_ channel_ cid - Set HPDMA1 channel
channel’s CID to 1 with filtering enabled. Required for the channel to be allowed to issue transactions to RISAF-protected peripherals like JPEG. - promote_
ltdc - Promote both LTDC layers (M=10/11, RISUP=103/104). The embassy LTDC driver always uses both layers from the same peripheral instance, so they’re promoted together.
- promote_
otg1 - Promote OTG1 USB host/device controller (M=4, RISUP=56).
- promote_
otg2 - Promote OTG2 USB host/device controller (M=5, RISUP=57).
- promote_
sdmmc1 - Promote SDMMC1 IDMA (M=2, RISUP=53).
- promote_
sdmmc2 - Promote SDMMC2 IDMA (M=3, RISUP=54).
- reinit
- Re-initialize the
embassy-stm32clock configuration with the provided configuration.