embassy-stm32

Crates

git

Versions

stm32n647a0

Flavors

Module rcc

Module rcc 

Source
Expand description

Reset and Clock Control (RCC)

Modules§

mux

Structs§

Clocks
Config
Configuration of the core clocks
Hse
Hsi
HsiCalibration
IcConfig
Configuration for an internal clock (IC) divider.
LsConfig
LseConfig
Mco
McoConfig
Msi
WakeGuard

Enums§

AhbPrescaler
ApbPrescaler
CpuClk
HseMode
HsiPrescaler
Icint
Icsel
LseDrive
LseMode
Mco1Source
Mco2Source
McoPrescaler
Pll
Plldivm
Pllpdiv
Pllsel
RtcClockSource
SupplyConfig
SysClk
XspiClkSrc

Constants§

HSI_FREQ
LSE_FREQ
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.
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-stm32 clock configuration with the provided configuration.