Cargo Features

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

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

py32-metapac = { path = "../py32-data/build/py32-metapac", default-features = false, features = [

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

time default

Enables embassy-time, time of embassy-embedded-hal

Affects i2c::Config.timeout

exti default

Affects py32-hal::exti

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