aboutsummaryrefslogtreecommitdiff
path: root/embassy-imxrt/Cargo.toml
diff options
context:
space:
mode:
authorFelipe Balbi <[email protected]>2025-04-03 08:47:25 -0700
committerFelipe Balbi <[email protected]>2025-04-09 09:37:45 -0700
commitaa9a16e569dfb56ce2b689733975f4d854af0b00 (patch)
tree865ae0aa84bcb4c438463d34dd567ea07abe98e3 /embassy-imxrt/Cargo.toml
parent0ec3e78c1bb0cdb20749cca4b294cb8a16e7fd43 (diff)
Add embassy-imxrt
Adds initial support for MIMXRT600 series MCUs from NXP. Subsequent PRs will add more drivers.
Diffstat (limited to 'embassy-imxrt/Cargo.toml')
-rw-r--r--embassy-imxrt/Cargo.toml84
1 files changed, 84 insertions, 0 deletions
diff --git a/embassy-imxrt/Cargo.toml b/embassy-imxrt/Cargo.toml
new file mode 100644
index 000000000..38087bf77
--- /dev/null
+++ b/embassy-imxrt/Cargo.toml
@@ -0,0 +1,84 @@
1[package]
2name = "embassy-imxrt"
3version = "0.1.0"
4edition = "2021"
5license = "MIT"
6description = "Embassy Hardware Abstraction Layer (HAL) for the IMXRT microcontroller"
7keywords = ["embedded", "async", "imxrt", "rt600", "embedded-hal"]
8categories = ["embedded", "hardware-support", "no-std", "asynchronous"]
9repository = "https://github.com/embassy-rs/embassy"
10documentation = "https://docs.embassy.dev/embassy-imxrt"
11
12[package.metadata.embassy_docs]
13src_base = "https://github.com/embassy-rs/embassy/blob/embassy-imxrt-v$VERSION/embassy-imxrt/src/"
14src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-imxrt/src/"
15features = ["defmt", "unstable-pac"]
16flavors = [
17 { regex_feature = "mimxrt6.*", target = "thumbv8m.main-none-eabihf" }
18]
19
20[package.metadata.docs.rs]
21features = ["mimxrt685s", "defmt", "unstable-pac"]
22rustdoc-args = ["--cfg", "docsrs"]
23
24[features]
25default = ["rt"]
26
27## Cortex-M runtime (enabled by default)
28rt = [
29 "mimxrt685s-pac?/rt",
30 "mimxrt633s-pac?/rt",
31]
32
33## Enable defmt
34defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt", "mimxrt685s-pac?/defmt", "mimxrt633s-pac?/defmt"]
35
36## Reexport the PAC for the currently enabled chip at `embassy_imxrt::pac` (unstable)
37unstable-pac = []
38
39# Features starting with `_` are for internal use only. They're not intended
40# to be enabled by other crates, and are not covered by semver guarantees.
41
42_mimxrt685s = []
43_mimxrt633s = ["_espi"]
44
45# Peripherals
46_espi = []
47
48#! ### Chip selection features
49## MIMXRT685S
50mimxrt685s = ["mimxrt685s-pac", "_mimxrt685s"]
51## MIMXRT633S
52mimxrt633s = ["mimxrt633s-pac", "_mimxrt633s"]
53
54[dependencies]
55embassy-sync = { version = "0.6.2", path = "../embassy-sync" }
56embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-3"] }
57embassy-embedded-hal = { version = "0.3.0", path = "../embassy-embedded-hal", default-features = false }
58embassy-futures = { version = "0.1.1", path = "../embassy-futures" }
59
60defmt = { version = "1.0", optional = true }
61log = { version = "0.4.14", optional = true }
62nb = "1.0.0"
63cfg-if = "1.0.0"
64cortex-m-rt = ">=0.7.3,<0.8"
65cortex-m = "0.7.6"
66critical-section = "1.1"
67embedded-io = { version = "0.6.1" }
68embedded-io-async = { version = "0.6.1" }
69rand_core = "0.6.4"
70fixed = "1.23.1"
71
72embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [
73 "unproven",
74] }
75embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
76embedded-hal-async = { version = "1.0" }
77embedded-hal-nb = { version = "1.0" }
78
79document-features = "0.2.7"
80paste = "1.0"
81
82# PACs
83mimxrt685s-pac = { version = "0.4.0", optional = true, features = ["rt", "critical-section"] }
84mimxrt633s-pac = { version = "0.4.0", optional = true, features = ["rt", "critical-section"] }