Cargo Features

[dependencies]
py32-hal = { version = "0.0.1", default-features = false, features = ["rt", "defmt", "memory-x", "embassy", "py32f030k28", "py32f030f16", "time-driver-any", "time-driver-tim3", "log", "embassy-time"] }
default = defmt, embassy, memory-x, rt

These default features are set whenever py32-hal is added without default-features = false somewhere in the dependency tree.

rt default

Enables rt of py32-metapac

defmt default

Enables defmt and defmt-rtt

memory-x default

Enables memory-x of py32-metapac

embassy default

Enables embassy-futures, embassy-sync, and embassy-time-driver

py32f030k28

Enables py32f030k28 of py32-metapac

py32f030f16

Enables py32f030f16 of py32-metapac

time-driver-any = _time-driver

As of 2023-12-04, this driver is implemented using CC1 as the halfway rollover interrupt, and any additional CC capabilities to provide timer alarms to embassy-time. embassy-time requires AT LEAST one alarm to be allocatable, which means timers that only have CC1, such as TIM16/TIM17, are not candidates for use as an embassy-time driver provider. (a.k.a 1CH and 1CH_CMP are not, others are good.)

time-driver-tim1 time-driver-tim3 = _time-driver
_time-driver time-driver-any? time-driver-tim1? time-driver-tim3?

Affects py32-hal::time_driver

Features from optional dependencies

log implicit feature

Enables log

log:

A lightweight logging facade for Rust

embassy-time implicit feature

Enables embassy-time

embassy-time:

Instant and Duration for embedded no-std systems, with async timer support