Embassy
embassy-stm32

Crates

git

Versions

stm32l152r8-a

Flavors

Crate embassy_stm32

source ·
Expand description

Feature flags

  • rt (enabled by default) — Enable stm32-metapac’s rt feature

  • defmt — Use defmt for logging

  • memory-x — Automatically generate memory.x file using stm32-metapac

  • nightly — Enable nightly-only features

  • unstable-pac — Re-export stm32-metapac at embassy_stm32::pac. This is unstable because semver-minor (non-breaking) releases of embassy-stm32 may major-bump (breaking) the stm32-metapac version. If this is an issue for you, you’re encouraged to directly depend on a fixed version of the PAC. There are no plans to make this stable.

  • unstable-traits — Implement embedded-hal 1.0 alpha traits. Implement embedded-hal-async traits if nightly is set as well.

Time

  • time — Enables additional driver features that depend on embassy-time

  • time-driver-any — Use any time driver

  • time-driver-tim2 — Use TIM2 as time driver

  • time-driver-tim3 — Use TIM3 as time driver

  • time-driver-tim4 — Use TIM4 as time driver

  • time-driver-tim5 — Use TIM5 as time driver

  • time-driver-tim12 — Use TIM12 as time driver

  • time-driver-tim15 — Use TIM15 as time driver

Chip-selection features

Select your chip by specifying the model as a feature, e.g. stm32c011d6. Check the Cargo.toml for the latest list of supported chips.

Important: Do not forget to adapt the target chip in your toolchain, e.g. in .cargo/config.toml.

Re-exports

  • pub use stm32_metapac as pac;

Modules

Macros

Structs

Constants

Traits

  • Trait for any type that can be used as a peripheral of type P.

Functions

  • Initialize embassy.

Attribute Macros