mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 21:01:06 +00:00

Adds initial support for MIMXRT600 series MCUs from NXP. Subsequent PRs will add more drivers.
85 lines
2.7 KiB
TOML
85 lines
2.7 KiB
TOML
[package]
|
|
name = "embassy-imxrt"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "MIT"
|
|
description = "Embassy Hardware Abstraction Layer (HAL) for the IMXRT microcontroller"
|
|
keywords = ["embedded", "async", "imxrt", "rt600", "embedded-hal"]
|
|
categories = ["embedded", "hardware-support", "no-std", "asynchronous"]
|
|
repository = "https://github.com/embassy-rs/embassy"
|
|
documentation = "https://docs.embassy.dev/embassy-imxrt"
|
|
|
|
[package.metadata.embassy_docs]
|
|
src_base = "https://github.com/embassy-rs/embassy/blob/embassy-imxrt-v$VERSION/embassy-imxrt/src/"
|
|
src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-imxrt/src/"
|
|
features = ["defmt", "unstable-pac"]
|
|
flavors = [
|
|
{ regex_feature = "mimxrt6.*", target = "thumbv8m.main-none-eabihf" }
|
|
]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["mimxrt685s", "defmt", "unstable-pac"]
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
[features]
|
|
default = ["rt"]
|
|
|
|
## Cortex-M runtime (enabled by default)
|
|
rt = [
|
|
"mimxrt685s-pac?/rt",
|
|
"mimxrt633s-pac?/rt",
|
|
]
|
|
|
|
## Enable defmt
|
|
defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt", "mimxrt685s-pac?/defmt", "mimxrt633s-pac?/defmt"]
|
|
|
|
## Reexport the PAC for the currently enabled chip at `embassy_imxrt::pac` (unstable)
|
|
unstable-pac = []
|
|
|
|
# Features starting with `_` are for internal use only. They're not intended
|
|
# to be enabled by other crates, and are not covered by semver guarantees.
|
|
|
|
_mimxrt685s = []
|
|
_mimxrt633s = ["_espi"]
|
|
|
|
# Peripherals
|
|
_espi = []
|
|
|
|
#! ### Chip selection features
|
|
## MIMXRT685S
|
|
mimxrt685s = ["mimxrt685s-pac", "_mimxrt685s"]
|
|
## MIMXRT633S
|
|
mimxrt633s = ["mimxrt633s-pac", "_mimxrt633s"]
|
|
|
|
[dependencies]
|
|
embassy-sync = { version = "0.6.2", path = "../embassy-sync" }
|
|
embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-3"] }
|
|
embassy-embedded-hal = { version = "0.3.0", path = "../embassy-embedded-hal", default-features = false }
|
|
embassy-futures = { version = "0.1.1", path = "../embassy-futures" }
|
|
|
|
defmt = { version = "1.0", optional = true }
|
|
log = { version = "0.4.14", optional = true }
|
|
nb = "1.0.0"
|
|
cfg-if = "1.0.0"
|
|
cortex-m-rt = ">=0.7.3,<0.8"
|
|
cortex-m = "0.7.6"
|
|
critical-section = "1.1"
|
|
embedded-io = { version = "0.6.1" }
|
|
embedded-io-async = { version = "0.6.1" }
|
|
rand_core = "0.6.4"
|
|
fixed = "1.23.1"
|
|
|
|
embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [
|
|
"unproven",
|
|
] }
|
|
embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
|
|
embedded-hal-async = { version = "1.0" }
|
|
embedded-hal-nb = { version = "1.0" }
|
|
|
|
document-features = "0.2.7"
|
|
paste = "1.0"
|
|
|
|
# PACs
|
|
mimxrt685s-pac = { version = "0.4.0", optional = true, features = ["rt", "critical-section"] }
|
|
mimxrt633s-pac = { version = "0.4.0", optional = true, features = ["rt", "critical-section"] }
|