diff options
| author | sodo <[email protected]> | 2024-01-01 21:18:30 +0900 |
|---|---|---|
| committer | sodo <[email protected]> | 2024-01-01 21:23:57 +0900 |
| commit | b7cd7952c890f585ff876c622482534e5d58d4a4 (patch) | |
| tree | 0e5ea4766ed76c0d6ca5de5507cb3ae0995fca86 /embassy-executor/Cargo.toml | |
| parent | 172ed52128e0da519c13b7a354aeb98c492be3c3 (diff) | |
avr: support sleep
Diffstat (limited to 'embassy-executor/Cargo.toml')
| -rw-r--r-- | embassy-executor/Cargo.toml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index ade37913b..c937194ce 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml | |||
| @@ -36,10 +36,11 @@ embassy-executor-macros = { version = "0.4.0", path = "../embassy-executor-macro | |||
| 36 | embassy-time = { version = "0.2", path = "../embassy-time", optional = true} | 36 | embassy-time = { version = "0.2", path = "../embassy-time", optional = true} |
| 37 | critical-section = "1.1" | 37 | critical-section = "1.1" |
| 38 | 38 | ||
| 39 | # needed for riscv | 39 | # needed for riscv and avr |
| 40 | # remove when https://github.com/rust-lang/rust/pull/114499 is merged | 40 | # remove when https://github.com/rust-lang/rust/pull/114499 is merged |
| 41 | portable-atomic = { version = "1.5", optional = true } | 41 | portable-atomic = { version = "1.5", optional = true } |
| 42 | 42 | ||
| 43 | |||
| 43 | # arch-cortex-m dependencies | 44 | # arch-cortex-m dependencies |
| 44 | cortex-m = { version = "0.7.6", optional = true } | 45 | cortex-m = { version = "0.7.6", optional = true } |
| 45 | 46 | ||
| @@ -47,6 +48,9 @@ cortex-m = { version = "0.7.6", optional = true } | |||
| 47 | wasm-bindgen = { version = "0.2.82", optional = true } | 48 | wasm-bindgen = { version = "0.2.82", optional = true } |
| 48 | js-sys = { version = "0.3", optional = true } | 49 | js-sys = { version = "0.3", optional = true } |
| 49 | 50 | ||
| 51 | # arch-avr dependencies | ||
| 52 | avr-device = { version = "0.5.3", optional = true } | ||
| 53 | |||
| 50 | [dev-dependencies] | 54 | [dev-dependencies] |
| 51 | critical-section = { version = "1.1", features = ["std"] } | 55 | critical-section = { version = "1.1", features = ["std"] } |
| 52 | 56 | ||
| @@ -55,7 +59,7 @@ critical-section = { version = "1.1", features = ["std"] } | |||
| 55 | 59 | ||
| 56 | # Architecture | 60 | # Architecture |
| 57 | _arch = [] # some arch was picked | 61 | _arch = [] # some arch was picked |
| 58 | arch-avr = ["_arch", "dep:portable-atomic"] | 62 | arch-avr = ["_arch", "dep:portable-atomic", "dep:avr-device"] |
| 59 | arch-std = ["_arch", "critical-section/std"] | 63 | arch-std = ["_arch", "critical-section/std"] |
| 60 | arch-cortex-m = ["_arch", "dep:cortex-m"] | 64 | arch-cortex-m = ["_arch", "dep:cortex-m"] |
| 61 | arch-riscv32 = ["_arch", "dep:portable-atomic"] | 65 | arch-riscv32 = ["_arch", "dep:portable-atomic"] |
