aboutsummaryrefslogtreecommitdiff
path: root/embassy-executor/Cargo.toml
diff options
context:
space:
mode:
authorsodo <[email protected]>2024-01-01 21:18:30 +0900
committersodo <[email protected]>2024-01-01 21:23:57 +0900
commitb7cd7952c890f585ff876c622482534e5d58d4a4 (patch)
tree0e5ea4766ed76c0d6ca5de5507cb3ae0995fca86 /embassy-executor/Cargo.toml
parent172ed52128e0da519c13b7a354aeb98c492be3c3 (diff)
avr: support sleep
Diffstat (limited to 'embassy-executor/Cargo.toml')
-rw-r--r--embassy-executor/Cargo.toml8
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
36embassy-time = { version = "0.2", path = "../embassy-time", optional = true} 36embassy-time = { version = "0.2", path = "../embassy-time", optional = true}
37critical-section = "1.1" 37critical-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
41portable-atomic = { version = "1.5", optional = true } 41portable-atomic = { version = "1.5", optional = true }
42 42
43
43# arch-cortex-m dependencies 44# arch-cortex-m dependencies
44cortex-m = { version = "0.7.6", optional = true } 45cortex-m = { version = "0.7.6", optional = true }
45 46
@@ -47,6 +48,9 @@ cortex-m = { version = "0.7.6", optional = true }
47wasm-bindgen = { version = "0.2.82", optional = true } 48wasm-bindgen = { version = "0.2.82", optional = true }
48js-sys = { version = "0.3", optional = true } 49js-sys = { version = "0.3", optional = true }
49 50
51# arch-avr dependencies
52avr-device = { version = "0.5.3", optional = true }
53
50[dev-dependencies] 54[dev-dependencies]
51critical-section = { version = "1.1", features = ["std"] } 55critical-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
58arch-avr = ["_arch", "dep:portable-atomic"] 62arch-avr = ["_arch", "dep:portable-atomic", "dep:avr-device"]
59arch-std = ["_arch", "critical-section/std"] 63arch-std = ["_arch", "critical-section/std"]
60arch-cortex-m = ["_arch", "dep:cortex-m"] 64arch-cortex-m = ["_arch", "dep:cortex-m"]
61arch-riscv32 = ["_arch", "dep:portable-atomic"] 65arch-riscv32 = ["_arch", "dep:portable-atomic"]