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