diff options
| author | i509VCB <[email protected]> | 2025-03-13 22:10:45 -0500 |
|---|---|---|
| committer | i509VCB <[email protected]> | 2025-03-13 22:10:45 -0500 |
| commit | e0cdc356ccd7f9e20c2b5355cc52b7eb7610147b (patch) | |
| tree | 0c34424508b1ee8d5010dc186247b72fac7aca69 /embassy-mspm0/Cargo.toml | |
| parent | 38f26137fc67beb874aa73c9a7ab2150d9f3d372 (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.toml | 125 |
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] | ||
| 2 | name = "embassy-mspm0" | ||
| 3 | version = "0.1.0" | ||
| 4 | edition = "2021" | ||
| 5 | license = "MIT OR Apache-2.0" | ||
| 6 | description = "Embassy Hardware Abstraction Layer (HAL) for Texas Instruments MSPM0 series microcontrollers" | ||
| 7 | keywords = ["embedded", "async", "mspm0", "hal", "embedded-hal"] | ||
| 8 | categories = ["embedded", "hardware-support", "no-std", "asynchronous"] | ||
| 9 | repository = "https://github.com/embassy-rs/embassy" | ||
| 10 | documentation = "https://docs.embassy.dev/embassy-mspm0" | ||
| 11 | |||
| 12 | [package.metadata.docs.rs] | ||
| 13 | features = ["defmt", "unstable-pac", "time-driver-any", "time", "mspm0g3507"] | ||
| 14 | rustdoc-args = ["--cfg", "docsrs"] | ||
| 15 | |||
| 16 | [dependencies] | ||
| 17 | embassy-sync = { version = "0.6.2", path = "../embassy-sync" } | ||
| 18 | embassy-time = { version = "0.4.0", path = "../embassy-time", optional = true } | ||
| 19 | # TODO: Support other tick rates | ||
| 20 | embassy-time-driver = { version = "0.2", path = "../embassy-time-driver", optional = true, features = ["tick-hz-32_768"] } | ||
| 21 | embassy-time-queue-utils = { version = "0.1", path = "../embassy-time-queue-utils", optional = true } | ||
| 22 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | ||
| 23 | embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-2"] } | ||
| 24 | embassy-embedded-hal = { version = "0.3.0", path = "../embassy-embedded-hal", default-features = false } | ||
| 25 | embassy-executor = { version = "0.7.0", path = "../embassy-executor", optional = true } | ||
| 26 | |||
| 27 | embedded-hal = { version = "1.0" } | ||
| 28 | embedded-hal-async = { version = "1.0" } | ||
| 29 | |||
| 30 | defmt = { version = "0.3", optional = true } | ||
| 31 | log = { version = "0.4.14", optional = true } | ||
| 32 | cortex-m-rt = ">=0.6.15,<0.8" | ||
| 33 | cortex-m = "0.7.6" | ||
| 34 | critical-section = "1.2.0" | ||
| 35 | |||
| 36 | # mspm0-metapac = { version = "" } | ||
| 37 | mspm0-metapac = { git = "https://github.com/mspm0-rs/mspm0-data-generated/", tag = "mspm0-data-9faa5239a8eab04946086158f2a7fdff5a6a179d" } | ||
| 38 | |||
| 39 | [build-dependencies] | ||
| 40 | proc-macro2 = "1.0.94" | ||
| 41 | quote = "1.0.40" | ||
| 42 | |||
| 43 | # mspm0-metapac = { version = "", default-features = false, features = ["metadata"] } | ||
| 44 | mspm0-metapac = { git = "https://github.com/mspm0-rs/mspm0-data-generated/", tag = "mspm0-data-9faa5239a8eab04946086158f2a7fdff5a6a179d", default-features = false, features = ["metadata"] } | ||
| 45 | |||
| 46 | [features] | ||
| 47 | default = ["rt"] | ||
| 48 | |||
| 49 | ## Enable `mspm0-metapac`'s `rt` feature | ||
| 50 | rt = ["mspm0-metapac/rt"] | ||
| 51 | |||
| 52 | ## Use [`defmt`](https://docs.rs/defmt/latest/defmt/) for logging | ||
| 53 | defmt = [ | ||
| 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. | ||
| 65 | unstable-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 | ||
| 74 | time-driver-any = ["_time-driver"] | ||
| 75 | ## Use TIMG0 as time driver | ||
| 76 | time-driver-timg0 = ["_time-driver"] | ||
| 77 | ## Use TIMG1 as time driver | ||
| 78 | time-driver-timg1 = ["_time-driver"] | ||
| 79 | ## Use TIMG2 as time driver | ||
| 80 | time-driver-timg2 = ["_time-driver"] | ||
| 81 | ## Use TIMG3 as time driver | ||
| 82 | time-driver-timg3 = ["_time-driver"] | ||
| 83 | ## Use TIMG4 as time driver | ||
| 84 | time-driver-timg4 = ["_time-driver"] | ||
| 85 | ## Use TIMG5 as time driver | ||
| 86 | time-driver-timg5 = ["_time-driver"] | ||
| 87 | ## Use TIMG6 as time driver | ||
| 88 | time-driver-timg6 = ["_time-driver"] | ||
| 89 | ## Use TIMG7 as time driver | ||
| 90 | time-driver-timg7 = ["_time-driver"] | ||
| 91 | ## Use TIMG8 as time driver | ||
| 92 | time-driver-timg8 = ["_time-driver"] | ||
| 93 | ## Use TIMG9 as time driver | ||
| 94 | time-driver-timg9 = ["_time-driver"] | ||
| 95 | ## Use TIMG10 as time driver | ||
| 96 | time-driver-timg10 = ["_time-driver"] | ||
| 97 | ## Use TIMG11 as time driver | ||
| 98 | time-driver-timg11 = ["_time-driver"] | ||
| 99 | # TODO: Support TIMG12 and TIMG13 | ||
| 100 | ## Use TIMG14 as time driver | ||
| 101 | time-driver-timg14 = ["_time-driver"] | ||
| 102 | ## Use TIMA0 as time driver | ||
| 103 | time-driver-tima0 = ["_time-driver"] | ||
| 104 | ## Use TIMA1 as time driver | ||
| 105 | time-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 | |||
| 114 | mspm0c110x = [ "mspm0-metapac/mspm0c110x" ] | ||
| 115 | mspm0g110x = [ "mspm0-metapac/mspm0g110x" ] | ||
| 116 | mspm0g150x = [ "mspm0-metapac/mspm0g150x" ] | ||
| 117 | mspm0g151x = [ "mspm0-metapac/mspm0g151x" ] | ||
| 118 | mspm0g310x = [ "mspm0-metapac/mspm0g310x" ] | ||
| 119 | mspm0g350x = [ "mspm0-metapac/mspm0g350x" ] | ||
| 120 | mspm0g351x = [ "mspm0-metapac/mspm0g351x" ] | ||
| 121 | mspm0l110x = [ "mspm0-metapac/mspm0l110x" ] | ||
| 122 | mspm0l122x = [ "mspm0-metapac/mspm0l122x" ] | ||
| 123 | mspm0l130x = [ "mspm0-metapac/mspm0l130x" ] | ||
| 124 | mspm0l134x = [ "mspm0-metapac/mspm0l134x" ] | ||
| 125 | mspm0l222x = [ "mspm0-metapac/mspm0l222x" ] | ||
