aboutsummaryrefslogtreecommitdiff
path: root/embassy-mspm0/Cargo.toml
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-03-21 13:32:14 +0000
committerGitHub <[email protected]>2025-03-21 13:32:14 +0000
commite29be82c8bc1b7e2dbf9f58dad4229d12968e1b4 (patch)
tree4ae9e7b784c82b96bcf870c3f61c62abad8a3811 /embassy-mspm0/Cargo.toml
parentfecb7a2b2b6f1953a2fe57557cb83d063ab5eea4 (diff)
parent91684a11c8a15b62a773a1ace40791fcf80fdad2 (diff)
Merge pull request #3966 from i509VCB/mspm0-init
Embassy for MSPM0
Diffstat (limited to 'embassy-mspm0/Cargo.toml')
-rw-r--r--embassy-mspm0/Cargo.toml131
1 files changed, 131 insertions, 0 deletions
diff --git a/embassy-mspm0/Cargo.toml b/embassy-mspm0/Cargo.toml
new file mode 100644
index 000000000..cfe0c85a9
--- /dev/null
+++ b/embassy-mspm0/Cargo.toml
@@ -0,0 +1,131 @@
1[package]
2name = "embassy-mspm0"
3version = "0.1.0"
4edition = "2021"
5license = "MIT OR Apache-2.0"
6description = "Embassy Hardware Abstraction Layer (HAL) for Texas Instruments MSPM0 series microcontrollers"
7keywords = ["embedded", "async", "mspm0", "hal", "embedded-hal"]
8categories = ["embedded", "hardware-support", "no-std", "asynchronous"]
9repository = "https://github.com/embassy-rs/embassy"
10documentation = "https://docs.embassy.dev/embassy-mspm0"
11
12[package.metadata.embassy_docs]
13src_base = "https://github.com/embassy-rs/embassy/blob/embassy-mspm0-v$VERSION/embassy-mspm0/src/"
14src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-mspm0/src/"
15
16features = ["defmt", "unstable-pac", "time-driver-any"]
17
18[package.metadata.docs.rs]
19features = ["defmt", "unstable-pac", "time-driver-any", "time", "mspm0g3507"]
20rustdoc-args = ["--cfg", "docsrs"]
21
22[dependencies]
23embassy-sync = { version = "0.6.2", path = "../embassy-sync" }
24embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true }
25# TODO: Support other tick rates
26embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true, features = ["tick-hz-32_768"] }
27embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true }
28embassy-futures = { version = "0.1.0", path = "../embassy-futures" }
29embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] }
30embassy-embedded-hal = { version = "0.3.0", path = "../embassy-embedded-hal", default-features = false }
31embassy-executor = { version = "0.7.0", path = "../embassy-executor", optional = true }
32
33embedded-hal = { version = "1.0" }
34embedded-hal-async = { version = "1.0" }
35
36defmt = { version = "0.3", optional = true }
37log = { version = "0.4.14", optional = true }
38cortex-m-rt = ">=0.6.15,<0.8"
39cortex-m = "0.7.6"
40critical-section = "1.2.0"
41
42# mspm0-metapac = { version = "" }
43mspm0-metapac = { git = "https://github.com/mspm0-rs/mspm0-data-generated/", tag = "mspm0-data-9faa5239a8eab04946086158f2a7fdff5a6a179d" }
44
45[build-dependencies]
46proc-macro2 = "1.0.94"
47quote = "1.0.40"
48
49# mspm0-metapac = { version = "", default-features = false, features = ["metadata"] }
50mspm0-metapac = { git = "https://github.com/mspm0-rs/mspm0-data-generated/", tag = "mspm0-data-9faa5239a8eab04946086158f2a7fdff5a6a179d", default-features = false, features = ["metadata"] }
51
52[features]
53default = ["rt"]
54
55## Enable `mspm0-metapac`'s `rt` feature
56rt = ["mspm0-metapac/rt"]
57
58## Use [`defmt`](https://docs.rs/defmt/latest/defmt/) for logging
59defmt = [
60 "dep:defmt",
61 "embassy-sync/defmt",
62 "embassy-embedded-hal/defmt",
63 "embassy-hal-internal/defmt",
64 "embassy-time?/defmt",
65]
66
67## Re-export mspm0-metapac at `mspm0::pac`.
68## This is unstable because semver-minor (non-breaking) releases of embassy-mspm0 may major-bump (breaking) the mspm0-metapac version.
69## If this is an issue for you, you're encouraged to directly depend on a fixed version of the PAC.
70## There are no plans to make this stable.
71unstable-pac = []
72
73#! ## Time
74
75# Features starting with `_` are for internal use only. They're not intended
76# to be enabled by other crates, and are not covered by semver guarantees.
77_time-driver = ["dep:embassy-time-driver", "dep:embassy-time-queue-utils"]
78
79# Use any time driver
80time-driver-any = ["_time-driver"]
81## Use TIMG0 as time driver
82time-driver-timg0 = ["_time-driver"]
83## Use TIMG1 as time driver
84time-driver-timg1 = ["_time-driver"]
85## Use TIMG2 as time driver
86time-driver-timg2 = ["_time-driver"]
87## Use TIMG3 as time driver
88time-driver-timg3 = ["_time-driver"]
89## Use TIMG4 as time driver
90time-driver-timg4 = ["_time-driver"]
91## Use TIMG5 as time driver
92time-driver-timg5 = ["_time-driver"]
93## Use TIMG6 as time driver
94time-driver-timg6 = ["_time-driver"]
95## Use TIMG7 as time driver
96time-driver-timg7 = ["_time-driver"]
97## Use TIMG8 as time driver
98time-driver-timg8 = ["_time-driver"]
99## Use TIMG9 as time driver
100time-driver-timg9 = ["_time-driver"]
101## Use TIMG10 as time driver
102time-driver-timg10 = ["_time-driver"]
103## Use TIMG11 as time driver
104time-driver-timg11 = ["_time-driver"]
105# TODO: Support TIMG12 and TIMG13
106## Use TIMG14 as time driver
107time-driver-timg14 = ["_time-driver"]
108## Use TIMA0 as time driver
109time-driver-tima0 = ["_time-driver"]
110## Use TIMA1 as time driver
111time-driver-tima1 = ["_time-driver"]
112
113#! ## Chip-selection features
114#! Select your chip by specifying the model as a feature, e.g. `mspm0g350x`.
115#! Check the `Cargo.toml` for the latest list of supported chips.
116#!
117#! **Important:** Do not forget to adapt the target chip in your toolchain,
118#! e.g. in `.cargo/config.toml`.
119
120mspm0c110x = [ "mspm0-metapac/mspm0c110x" ]
121mspm0g110x = [ "mspm0-metapac/mspm0g110x" ]
122mspm0g150x = [ "mspm0-metapac/mspm0g150x" ]
123mspm0g151x = [ "mspm0-metapac/mspm0g151x" ]
124mspm0g310x = [ "mspm0-metapac/mspm0g310x" ]
125mspm0g350x = [ "mspm0-metapac/mspm0g350x" ]
126mspm0g351x = [ "mspm0-metapac/mspm0g351x" ]
127mspm0l110x = [ "mspm0-metapac/mspm0l110x" ]
128mspm0l122x = [ "mspm0-metapac/mspm0l122x" ]
129mspm0l130x = [ "mspm0-metapac/mspm0l130x" ]
130mspm0l134x = [ "mspm0-metapac/mspm0l134x" ]
131mspm0l222x = [ "mspm0-metapac/mspm0l222x" ]