aboutsummaryrefslogtreecommitdiff
path: root/embassy-mcxa/Cargo.toml
diff options
context:
space:
mode:
authorRaul Alimbekov <[email protected]>2025-12-16 09:05:22 +0300
committerGitHub <[email protected]>2025-12-16 09:05:22 +0300
commitc9a04b4b732b7a3b696eb8223664c1a7942b1875 (patch)
tree6dbe5c02e66eed8d8762f13f95afd24f8db2b38c /embassy-mcxa/Cargo.toml
parentcde24a3ef1117653ba5ed4184102b33f745782fb (diff)
parent5ae6e060ec1c90561719aabdc29d5b6e7b8b0a82 (diff)
Merge branch 'main' into main
Diffstat (limited to 'embassy-mcxa/Cargo.toml')
-rw-r--r--embassy-mcxa/Cargo.toml72
1 files changed, 72 insertions, 0 deletions
diff --git a/embassy-mcxa/Cargo.toml b/embassy-mcxa/Cargo.toml
new file mode 100644
index 000000000..76ce59f5a
--- /dev/null
+++ b/embassy-mcxa/Cargo.toml
@@ -0,0 +1,72 @@
1[package]
2name = "embassy-mcxa"
3version = "0.1.0"
4edition = "2021"
5license = "MIT OR Apache-2.0"
6description = "Embassy Hardware Abstraction Layer (HAL) for NXP MCXA series of MCUs"
7repository = "https://github.com/embassy-rs/embassy"
8keywords = ["embedded", "hal", "nxp", "mcxa", "embassy"]
9categories = ["embedded", "hardware-support", "no-std"]
10documentation = "https://docs.embassy.dev/embassy-mcxa"
11
12[package.metadata.embassy]
13build = [
14 {target = "thumbv8m.main-none-eabihf", features = ["defmt", "time", "unstable-pac"]},
15]
16
17[package.metadata.embassy_docs]
18src_base = "https://github.com/embassy-rs/embassy/blob/embassy-mcxa-v$VERSION/embassy-mcxa/src/"
19src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-mcxa/src/"
20
21features = ["defmt", "time", "unstable-pac"]
22flavors = [
23 { name = "mcx-a256", target = "thumbv8m.main-none-eabihf" },
24]
25
26[dependencies]
27cortex-m = { version = "0.7", features = ["critical-section-single-core"] }
28# If you would like "device" to be an optional feature, please open an issue.
29cortex-m-rt = { version = "0.7", features = ["device"] }
30critical-section = "1.2.0"
31defmt = { version = "1.0", optional = true }
32embassy-embedded-hal = "0.5.0"
33embassy-hal-internal = { version = "0.3.0", features = ["cortex-m", "prio-bits-3"] }
34embassy-sync = "0.7.2"
35embedded-hal-1 = { package = "embedded-hal", version = "1.0" }
36embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
37embedded-hal-async = { version = "1.0" }
38embedded-hal-nb = { version = "1.0" }
39embedded-io = "0.6"
40embedded-io-async = { version = "0.6.1" }
41heapless = "0.8"
42mcxa-pac = { version = "0.1.0", features = ["rt", "critical-section"] }
43nb = "1.1.0"
44paste = "1.0.15"
45maitake-sync = { version = "0.2.2", default-features = false, features = ["critical-section", "no-cache-pad"] }
46
47# `time` dependencies
48embassy-time = { version = "0.5.0", optional = true }
49embassy-time-driver = { version = "0.2.1", optional = true }
50
51rand-core-06 = { package = "rand_core", version = "0.6" }
52rand-core-09 = { package = "rand_core", version = "0.9" }
53
54[features]
55default = ["rt"]
56
57# Base defmt feature enables core + panic handler
58# Use with one logger feature: defmt-rtt (preferred) or defmt-uart (fallback)
59defmt = ["dep:defmt", "mcxa-pac/defmt"]
60
61unstable-pac = []
62
63# dummy feature to silence embassy-hal-internal lint
64#
65# This feature makes no change to embassy-mcxa's operation.
66rt = []
67
68# Embassy time
69time = [
70 "dep:embassy-time",
71 "dep:embassy-time-driver",
72]