aboutsummaryrefslogtreecommitdiff
path: root/embassy-nxp/Cargo.toml
diff options
context:
space:
mode:
authori509VCB <[email protected]>2025-07-09 23:08:59 -0500
committeri509VCB <[email protected]>2025-07-22 11:07:10 -0500
commit1ad5d5a771d5109a763361454fb724b85ae25fdd (patch)
tree62beeabed93b1108b8b4888aaac259f0a3256d01 /embassy-nxp/Cargo.toml
parentd656b174ed8976b9d77ba8098042d75dd76ef733 (diff)
nxp: Add MIMXRT1011 GPIO and time driver
PIT is used for the time driver
Diffstat (limited to 'embassy-nxp/Cargo.toml')
-rw-r--r--embassy-nxp/Cargo.toml36
1 files changed, 32 insertions, 4 deletions
diff --git a/embassy-nxp/Cargo.toml b/embassy-nxp/Cargo.toml
index 56d00bfb2..625906183 100644
--- a/embassy-nxp/Cargo.toml
+++ b/embassy-nxp/Cargo.toml
@@ -11,22 +11,50 @@ embassy-hal-internal = { version = "0.3.0", path = "../embassy-hal-internal", fe
11embassy-sync = { version = "0.7.0", path = "../embassy-sync" } 11embassy-sync = { version = "0.7.0", path = "../embassy-sync" }
12defmt = { version = "1", optional = true } 12defmt = { version = "1", optional = true }
13log = { version = "0.4.27", optional = true } 13log = { version = "0.4.27", optional = true }
14embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true }
15embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true }
16embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true }
14 17
15## Chip dependencies 18## Chip dependencies
16lpc55-pac = { version = "0.5.0", optional = true } 19lpc55-pac = { version = "0.5.0", optional = true }
20nxp-pac = { version = "0.1.0", optional = true, git = "https://github.com/i509VCB/nxp-pac", rev = "1e010dbe75ab0e14dd908e4646391403414c8a8e" }
21
22imxrt-rt = { version = "0.1.7", optional = true, features = ["device"] }
23
24[build-dependencies]
25cfg_aliases = "0.2.1"
26nxp-pac = { version = "0.1.0", git = "https://github.com/i509VCB/nxp-pac", rev = "1e010dbe75ab0e14dd908e4646391403414c8a8e", features = ["metadata"], optional = true }
27proc-macro2 = "1.0.95"
28quote = "1.0.15"
17 29
18[features] 30[features]
19default = ["rt"] 31default = ["rt"]
20# Enable PACs as optional dependencies, since some chip families will use different pac crates. 32# Enable PACs as optional dependencies, since some chip families will use different pac crates (temporarily).
21rt = ["lpc55-pac?/rt"] 33rt = ["lpc55-pac?/rt", "nxp-pac?/rt"]
22 34
23## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers. 35## Enable [defmt support](https://docs.rs/defmt) and enables `defmt` debug-log messages and formatting in embassy drivers.
24defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"] 36defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt"]
37
38log = ["dep:log"]
39
40## Use Periodic Interrupt Timer (PIT) as the time driver for `embassy-time`, with a tick rate of 1 MHz
41time-driver-pit = ["_time_driver", "embassy-time?/tick-hz-1_000_000"]
42
25## Reexport the PAC for the currently enabled chip at `embassy_nxp::pac` (unstable) 43## Reexport the PAC for the currently enabled chip at `embassy_nxp::pac` (unstable)
26unstable-pac = [] 44unstable-pac = []
27# This is unstable because semver-minor (non-breaking) releases of embassy-nrf may major-bump (breaking) the PAC version. 45# This is unstable because semver-minor (non-breaking) releases of embassy-nxp may major-bump (breaking) the PAC version.
28# If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC. 46# If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC.
29# There are no plans to make this stable. 47# There are no plans to make this stable.
30 48
49## internal use only
50#
51# This feature is unfortunately a hack around the fact that cfg_aliases cannot apply to the buildscript
52# that creates the aliases.
53_rt1xxx = []
54
55# A timer driver is enabled.
56_time_driver = ["dep:embassy-time-driver", "dep:embassy-time-queue-utils"]
57
31#! ### Chip selection features 58#! ### Chip selection features
32lpc55 = ["lpc55-pac"] 59lpc55 = ["dep:lpc55-pac"]
60mimxrt1011 = ["nxp-pac/mimxrt1011", "_rt1xxx", "dep:imxrt-rt"]