mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-27 04:10:25 +00:00
43 lines
1.7 KiB
TOML
43 lines
1.7 KiB
TOML
[package]
|
|
name = "embassy-nxp"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[package.metadata.embassy_docs]
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-nxp-v$VERSION/embassy-nxp/src/"
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-nxp/src/"
|
|
features = ["defmt", "unstable-pac" ] # TODO: Add time-driver-any, as both lpc55 and mimxrt1xxx use different drivers.
|
|
|
|
flavors = [
|
|
{ regex_feature = "lpc55", target = "thumbv8m.main-none-eabihf" },
|
|
{ regex_feature = "mimxrt.*", target = "thumbv7em-none-eabihf" },
|
|
]
|
|
|
|
[dependencies]
|
|
cortex-m = "0.7.7"
|
|
cortex-m-rt = "0.7.0"
|
|
critical-section = "1.1.2"
|
|
embassy-hal-internal = { version = "0.3.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] }
|
|
embassy-sync = { version = "0.7.0", path = "../embassy-sync" }
|
|
defmt = { version = "1", optional = true }
|
|
|
|
## Chip dependencies
|
|
lpc55-pac = { version = "0.5.0", optional = true }
|
|
|
|
[features]
|
|
default = ["rt"]
|
|
# Enable PACs as optional dependencies, since some chip families will use different pac crates.
|
|
rt = ["lpc55-pac?/rt"]
|
|
|
|
## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers.
|
|
defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"]
|
|
|
|
## Reexport the PAC for the currently enabled chip at `embassy_nxp::pac` (unstable)
|
|
unstable-pac = []
|
|
# This is unstable because semver-minor (non-breaking) releases of embassy-nrf 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.
|
|
|
|
#! ### Chip selection features
|
|
lpc55 = ["lpc55-pac"]
|