diff options
| author | Felipe Balbi <[email protected]> | 2025-04-03 08:47:25 -0700 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2025-04-09 09:37:45 -0700 |
| commit | aa9a16e569dfb56ce2b689733975f4d854af0b00 (patch) | |
| tree | 865ae0aa84bcb4c438463d34dd567ea07abe98e3 /embassy-imxrt/Cargo.toml | |
| parent | 0ec3e78c1bb0cdb20749cca4b294cb8a16e7fd43 (diff) | |
Add embassy-imxrt
Adds initial support for MIMXRT600 series MCUs from NXP. Subsequent
PRs will add more drivers.
Diffstat (limited to 'embassy-imxrt/Cargo.toml')
| -rw-r--r-- | embassy-imxrt/Cargo.toml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/embassy-imxrt/Cargo.toml b/embassy-imxrt/Cargo.toml new file mode 100644 index 000000000..38087bf77 --- /dev/null +++ b/embassy-imxrt/Cargo.toml | |||
| @@ -0,0 +1,84 @@ | |||
| 1 | [package] | ||
| 2 | name = "embassy-imxrt" | ||
| 3 | version = "0.1.0" | ||
| 4 | edition = "2021" | ||
| 5 | license = "MIT" | ||
| 6 | description = "Embassy Hardware Abstraction Layer (HAL) for the IMXRT microcontroller" | ||
| 7 | keywords = ["embedded", "async", "imxrt", "rt600", "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-imxrt" | ||
| 11 | |||
| 12 | [package.metadata.embassy_docs] | ||
| 13 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-imxrt-v$VERSION/embassy-imxrt/src/" | ||
| 14 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-imxrt/src/" | ||
| 15 | features = ["defmt", "unstable-pac"] | ||
| 16 | flavors = [ | ||
| 17 | { regex_feature = "mimxrt6.*", target = "thumbv8m.main-none-eabihf" } | ||
| 18 | ] | ||
| 19 | |||
| 20 | [package.metadata.docs.rs] | ||
| 21 | features = ["mimxrt685s", "defmt", "unstable-pac"] | ||
| 22 | rustdoc-args = ["--cfg", "docsrs"] | ||
| 23 | |||
| 24 | [features] | ||
| 25 | default = ["rt"] | ||
| 26 | |||
| 27 | ## Cortex-M runtime (enabled by default) | ||
| 28 | rt = [ | ||
| 29 | "mimxrt685s-pac?/rt", | ||
| 30 | "mimxrt633s-pac?/rt", | ||
| 31 | ] | ||
| 32 | |||
| 33 | ## Enable defmt | ||
| 34 | defmt = ["dep:defmt", "embassy-hal-internal/defmt", "embassy-sync/defmt", "mimxrt685s-pac?/defmt", "mimxrt633s-pac?/defmt"] | ||
| 35 | |||
| 36 | ## Reexport the PAC for the currently enabled chip at `embassy_imxrt::pac` (unstable) | ||
| 37 | unstable-pac = [] | ||
| 38 | |||
| 39 | # Features starting with `_` are for internal use only. They're not intended | ||
| 40 | # to be enabled by other crates, and are not covered by semver guarantees. | ||
| 41 | |||
| 42 | _mimxrt685s = [] | ||
| 43 | _mimxrt633s = ["_espi"] | ||
| 44 | |||
| 45 | # Peripherals | ||
| 46 | _espi = [] | ||
| 47 | |||
| 48 | #! ### Chip selection features | ||
| 49 | ## MIMXRT685S | ||
| 50 | mimxrt685s = ["mimxrt685s-pac", "_mimxrt685s"] | ||
| 51 | ## MIMXRT633S | ||
| 52 | mimxrt633s = ["mimxrt633s-pac", "_mimxrt633s"] | ||
| 53 | |||
| 54 | [dependencies] | ||
| 55 | embassy-sync = { version = "0.6.2", path = "../embassy-sync" } | ||
| 56 | embassy-hal-internal = { version = "0.2.0", path = "../embassy-hal-internal", features = ["cortex-m", "prio-bits-3"] } | ||
| 57 | embassy-embedded-hal = { version = "0.3.0", path = "../embassy-embedded-hal", default-features = false } | ||
| 58 | embassy-futures = { version = "0.1.1", path = "../embassy-futures" } | ||
| 59 | |||
| 60 | defmt = { version = "1.0", optional = true } | ||
| 61 | log = { version = "0.4.14", optional = true } | ||
| 62 | nb = "1.0.0" | ||
| 63 | cfg-if = "1.0.0" | ||
| 64 | cortex-m-rt = ">=0.7.3,<0.8" | ||
| 65 | cortex-m = "0.7.6" | ||
| 66 | critical-section = "1.1" | ||
| 67 | embedded-io = { version = "0.6.1" } | ||
| 68 | embedded-io-async = { version = "0.6.1" } | ||
| 69 | rand_core = "0.6.4" | ||
| 70 | fixed = "1.23.1" | ||
| 71 | |||
| 72 | embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = [ | ||
| 73 | "unproven", | ||
| 74 | ] } | ||
| 75 | embedded-hal-1 = { package = "embedded-hal", version = "1.0" } | ||
| 76 | embedded-hal-async = { version = "1.0" } | ||
| 77 | embedded-hal-nb = { version = "1.0" } | ||
| 78 | |||
| 79 | document-features = "0.2.7" | ||
| 80 | paste = "1.0" | ||
| 81 | |||
| 82 | # PACs | ||
| 83 | mimxrt685s-pac = { version = "0.4.0", optional = true, features = ["rt", "critical-section"] } | ||
| 84 | mimxrt633s-pac = { version = "0.4.0", optional = true, features = ["rt", "critical-section"] } | ||
