Cargo Features

rp235x-hal has no features set by default.

[dependencies]
rp235x-hal = { version = "0.2.0", features = ["rt", "rom-func-cache", "critical-section-impl", "defmt", "rtic-monotonic", "i2c-write-iter", "dcp-fast-f64", "binary-info"] }

Optional dependencies. Keep these sorted by name.
None

rt binary-info?

Enable the boot-up code from the arch runtime

Enables rp235x-pac

rom-func-cache

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

critical-section-impl

critical section that is safe for multicore use

Enables restore-state-u8 of critical-section

defmt

Implement defmt::Format for several types.

Enables defmt

Optional dependencies. Keep these sorted by name.

rtic-monotonic

Implement rtic_monotonic::Monotonic based on the RP235x timer peripheral

Enables rtic-monotonic

Affects timer::monotonic

i2c-write-iter

Implement i2c-write-iter traits

Enables i2c-write-iter

dcp-fast-f64

Use DCP to accelerate some (but not all) f64 operations.

If you really want to save every last micro-amp, and know you aren't doing any f64 operations, you can disable this feature (which is on by default) and then manually disable the DCP by either clearing the bits we set for you in the CPACR register, or changing the #[entry] macro to not set those bits.

Almost everyone will want this on, but we let the BSPs make that choice.

binary-info = rt

Add a binary-info header block containing picotool-compatible metadata.

Requires 'rt' so that the vector table is correctly sized and therefore the header is within reach of picotool.

Enables binary-info of rp-binary-info