Cargo Features

[dependencies]
embassy-rp = { version = "0.1.0", default-features = false, features = ["rt", "defmt", "critical-section-impl", "unstable-pac", "time-driver", "rom-func-cache", "intrinsics", "rom-v2-intrinsics", "qspi-as-gpio", "run-from-ram", "boot2-at25sf128a", "boot2-gd25q64cs", "boot2-generic-03h", "boot2-is25lp080", "boot2-ram-memcpy", "boot2-w25q080", "boot2-w25x10cl", "log", "chrono"] }
default = rt

The rt feature is set by default whenever embassy-rp is added without default-features = false somewhere in the dependency tree.

rt default

Enable the RP runtime.

Enables rt of rp-pac

defmt

Enable defmt

Enables defmt, defmt of embassy-hal-internal and embassy-usb-driver

critical-section-impl

critical section that is safe for multicore use

Enables restore-state-u8 of critical-section

unstable-pac

Reexport the PAC for the currently enabled chip at embassy_rp::pac. This is unstable because semver-minor (non-breaking) releases of embassy-rp may major-bump (breaking) the PAC version. If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC. There are no plans to make this stable.

time-driver

Enable the timer for use with embassy-time with a 1MHz tick rate

Enables tick-hz-1_000_000 of embassy-time-driver

Affects embassy-rp::time_driver

rom-func-cache

Enable ROM function cache

intrinsics

Enable intrinsics

rom-v2-intrinsics

Enable ROM v2 intrinsics

qspi-as-gpio

Allow using QSPI pins as GPIO pins. This is mostly not what you want (because your flash lives there)
and would add both code and memory overhead when enabled needlessly.

run-from-ram

Indicate code is running from RAM.
Set this if all code is in RAM, and the cores never access memory-mapped flash memory through XIP.
This allows the flash driver to not force pausing execution on both cores when doing flash operations.

boot2-at25sf128a

### boot2 flash chip support
If none of these are enabled, w25q080 is used by default (used on the pico)
AT25SF128a

boot2-gd25q64cs

GD25Q64cs

boot2-generic-03h

generic-03h

boot2-is25lp080

IS25LP080

boot2-ram-memcpy

ram-memcpy

boot2-w25q080

W25Q080

boot2-w25x10cl

W25X10cl

Features from optional dependencies

log implicit feature

Enables log

log:

A lightweight logging facade for Rust

chrono implicit feature

Enables chrono

chrono:

Date and time library for Rust