Cargo Features

[dependencies]
py32-bind-hal = { version = "0.5.0", default-features = false, features = ["embassy", "time", "defmt", "recompile", "py32f030", "csdk-hal", "peri-gpiof", "peri-i2c", "peri-i2c0", "peri-i2c2", "peri-dma"] }
default = defmt, embassy, py32f030, time

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

embassy default

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

time default

Enables embassy-time

Affects i2c::Config.timeout, i2c::I2c.timeout, py32-bind-hal::Timeout.timeout

defmt default

Enables defmt, defmt of embassy-sync and optional embassy-time

recompile

Enables recompile of py32csdk-hal-sys

py32f030 default = csdk-hal, peri-dma, peri-gpioa, peri-gpiob, peri-gpiof, peri-i2c, peri-i2c0

Enables py32f030 of py32csdk-hal-sys

Affects rcc::into_48_mhz_hsi, rcc::into_32_mhz_hsi, rcc::into_8_mhz_hsi, rcc::into_1_mhz_hsi

csdk-hal py32f030

Affects gpio::csdk_hal

peri-gpioa peri-gpiob peri-gpiof py32f030
peri-i2c py32f030

Affects py32-bind-hal::i2c

peri-i2c0 py32f030

only one i2c without number

peri-i2c1 peri-i2c2
peri-dma py32f030