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