Cargo Features

[dependencies]
cytron_maker_pi_rp2040 = { version = "0.6.0", default-features = false, features = ["critical-section-impl", "boot2", "rt", "rp2040-e5", "rom-func-cache"] }
default = boot2, critical-section-impl, rom-func-cache, rt

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

critical-section-impl default

critical section that is safe for multicore use

Enables critical-section-impl of rp2040-hal ^0.9

boot2 default = rp2040-boot2

2nd stage bootloaders for rp2040

Affects cytron_maker_pi_rp2040::BOOT2_FIRMWARE

rt default = cortex-m-rt

Minimal startup / runtime for Cortex-M microcontrollers

Enables rt of rp2040-hal ^0.9

rp2040-e5

This enables a fix for USB errata 5: USB device fails to exit RESET state on busy USB bus.
Only required for RP2040 B0 and RP2040 B1, but it also works for RP2040 B2 and above

Enables rp2040-e5 of rp2040-hal ^0.9

rom-func-cache default

Memoize(cache) ROM function pointers on first use to improve performance

Enables rom-func-cache of rp2040-hal ^0.9

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rp2040-boot2 boot2
cortex-m-rt rt