diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-02 21:52:07 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-02 21:52:07 +0100 |
| commit | 1f51367eb92830c4c2c36406444d255fddb6b283 (patch) | |
| tree | c0b8829121fbe786e8ae922bd0e41dd4022ad40f | |
| parent | d6f42eafad5582963a6d4c266f79425ed9b812e0 (diff) | |
Upgrade static-cell to v2.0
29 files changed, 37 insertions, 32 deletions
diff --git a/embassy-executor/Cargo.toml b/embassy-executor/Cargo.toml index d8cc3e8a7..8e36637a3 100644 --- a/embassy-executor/Cargo.toml +++ b/embassy-executor/Cargo.toml | |||
| @@ -62,7 +62,6 @@ embassy-macros = { version = "0.2.1", path = "../embassy-macros" } | |||
| 62 | embassy-time = { version = "0.1.5", path = "../embassy-time", optional = true} | 62 | embassy-time = { version = "0.1.5", path = "../embassy-time", optional = true} |
| 63 | atomic-polyfill = "1.0.1" | 63 | atomic-polyfill = "1.0.1" |
| 64 | critical-section = "1.1" | 64 | critical-section = "1.1" |
| 65 | static_cell = "1.1" | ||
| 66 | 65 | ||
| 67 | # arch-cortex-m dependencies | 66 | # arch-cortex-m dependencies |
| 68 | cortex-m = { version = "0.7.6", optional = true } | 67 | cortex-m = { version = "0.7.6", optional = true } |
diff --git a/embassy-executor/src/lib.rs b/embassy-executor/src/lib.rs index 020f9095c..f2c86d8e6 100644 --- a/embassy-executor/src/lib.rs +++ b/embassy-executor/src/lib.rs | |||
| @@ -47,7 +47,6 @@ pub use spawner::*; | |||
| 47 | pub mod _export { | 47 | pub mod _export { |
| 48 | #[cfg(feature = "rtos-trace")] | 48 | #[cfg(feature = "rtos-trace")] |
| 49 | pub use rtos_trace::trace; | 49 | pub use rtos_trace::trace; |
| 50 | pub use static_cell::StaticCell; | ||
| 51 | 50 | ||
| 52 | /// Expands the given block of code when `embassy-executor` is compiled with | 51 | /// Expands the given block of code when `embassy-executor` is compiled with |
| 53 | /// the `rtos-trace-interrupt` feature. | 52 | /// the `rtos-trace-interrupt` feature. |
diff --git a/embassy-macros/src/macros/main.rs b/embassy-macros/src/macros/main.rs index 7c4d55163..3c0d58567 100644 --- a/embassy-macros/src/macros/main.rs +++ b/embassy-macros/src/macros/main.rs | |||
| @@ -53,8 +53,7 @@ pub fn wasm() -> TokenStream { | |||
| 53 | quote! { | 53 | quote! { |
| 54 | #[wasm_bindgen::prelude::wasm_bindgen(start)] | 54 | #[wasm_bindgen::prelude::wasm_bindgen(start)] |
| 55 | pub fn main() -> Result<(), wasm_bindgen::JsValue> { | 55 | pub fn main() -> Result<(), wasm_bindgen::JsValue> { |
| 56 | static EXECUTOR: ::embassy_executor::_export::StaticCell<::embassy_executor::Executor> = ::embassy_executor::_export::StaticCell::new(); | 56 | let executor = ::std::boxed::Box::leak(::std::boxed::Box::new(::embassy_executor::Executor::new())); |
| 57 | let executor = EXECUTOR.init(::embassy_executor::Executor::new()); | ||
| 58 | 57 | ||
| 59 | executor.start(|spawner| { | 58 | executor.start(|spawner| { |
| 60 | spawner.spawn(__embassy_main(spawner)).unwrap(); | 59 | spawner.spawn(__embassy_main(spawner)).unwrap(); |
diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 5dc15c732..6be9f4bb0 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml | |||
| @@ -95,4 +95,4 @@ rp2040-boot2 = "0.3" | |||
| 95 | 95 | ||
| 96 | [dev-dependencies] | 96 | [dev-dependencies] |
| 97 | embassy-executor = { version = "0.3.1", path = "../embassy-executor", features = ["nightly", "arch-std", "executor-thread"] } | 97 | embassy-executor = { version = "0.3.1", path = "../embassy-executor", features = ["nightly", "arch-std", "executor-thread"] } |
| 98 | static_cell = "1.1" | 98 | static_cell = { version = "2" } |
diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml index 81aeafae2..9a47fa212 100644 --- a/embassy-sync/Cargo.toml +++ b/embassy-sync/Cargo.toml | |||
| @@ -45,4 +45,4 @@ futures-util = { version = "0.3.17", features = [ "channel" ] } | |||
| 45 | 45 | ||
| 46 | # Enable critical-section implementation for std, for tests | 46 | # Enable critical-section implementation for std, for tests |
| 47 | critical-section = { version = "1.1", features = ["std"] } | 47 | critical-section = { version = "1.1", features = ["std"] } |
| 48 | static_cell = "1.1" | 48 | static_cell = { version = "2" } |
diff --git a/embassy-usb-logger/Cargo.toml b/embassy-usb-logger/Cargo.toml index 29a8e421a..48b8bbcc6 100644 --- a/embassy-usb-logger/Cargo.toml +++ b/embassy-usb-logger/Cargo.toml | |||
| @@ -13,6 +13,6 @@ embassy-usb = { version = "0.1.0", path = "../embassy-usb" } | |||
| 13 | embassy-sync = { version = "0.4.0", path = "../embassy-sync" } | 13 | embassy-sync = { version = "0.4.0", path = "../embassy-sync" } |
| 14 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } | 14 | embassy-futures = { version = "0.1.0", path = "../embassy-futures" } |
| 15 | futures = { version = "0.3", default-features = false } | 15 | futures = { version = "0.3", default-features = false } |
| 16 | static_cell = "1" | 16 | static_cell = { version = "2" } |
| 17 | usbd-hid = "0.6.0" | 17 | usbd-hid = "0.6.0" |
| 18 | log = "0.4" | 18 | log = "0.4" |
diff --git a/examples/nrf52840/Cargo.toml b/examples/nrf52840/Cargo.toml index 0554b7e06..f803adb03 100644 --- a/examples/nrf52840/Cargo.toml +++ b/examples/nrf52840/Cargo.toml | |||
| @@ -48,7 +48,7 @@ defmt = "0.3" | |||
| 48 | defmt-rtt = "0.4" | 48 | defmt-rtt = "0.4" |
| 49 | 49 | ||
| 50 | fixed = "1.10.0" | 50 | fixed = "1.10.0" |
| 51 | static_cell = "1.1" | 51 | static_cell = { version = "2" } |
| 52 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } | 52 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } |
| 53 | cortex-m-rt = "0.7.0" | 53 | cortex-m-rt = "0.7.0" |
| 54 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 54 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
diff --git a/examples/nrf5340/Cargo.toml b/examples/nrf5340/Cargo.toml index 9c62508cd..4196d61ab 100644 --- a/examples/nrf5340/Cargo.toml +++ b/examples/nrf5340/Cargo.toml | |||
| @@ -42,7 +42,7 @@ embedded-io-async = { version = "0.6.0" } | |||
| 42 | defmt = "0.3" | 42 | defmt = "0.3" |
| 43 | defmt-rtt = "0.4" | 43 | defmt-rtt = "0.4" |
| 44 | 44 | ||
| 45 | static_cell = { version = "1.1", features = ["nightly"]} | 45 | static_cell = { version = "2", features = ["nightly"]} |
| 46 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } | 46 | cortex-m = { version = "0.7.6", features = ["inline-asm", "critical-section-single-core"] } |
| 47 | cortex-m-rt = "0.7.0" | 47 | cortex-m-rt = "0.7.0" |
| 48 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 48 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
diff --git a/examples/rp/Cargo.toml b/examples/rp/Cargo.toml index d020a0f5d..fbe7acae1 100644 --- a/examples/rp/Cargo.toml +++ b/examples/rp/Cargo.toml | |||
| @@ -47,7 +47,8 @@ embedded-hal-async = "1.0.0-rc.1" | |||
| 47 | embedded-hal-bus = { version = "0.1.0-rc.1", features = ["async"] } | 47 | embedded-hal-bus = { version = "0.1.0-rc.1", features = ["async"] } |
| 48 | embedded-io-async = { version = "0.6.0", features = ["defmt-03"] } | 48 | embedded-io-async = { version = "0.6.0", features = ["defmt-03"] } |
| 49 | embedded-storage = { version = "0.3" } | 49 | embedded-storage = { version = "0.3" } |
| 50 | static_cell = { version = "1.1", features = ["nightly"]} | 50 | static_cell = { version = "2", features = ["nightly"]} |
| 51 | portable-atomic = { version = "1.5", features = ["critical-section"] } | ||
| 51 | log = "0.4" | 52 | log = "0.4" |
| 52 | pio-proc = "0.2" | 53 | pio-proc = "0.2" |
| 53 | pio = "0.2.1" | 54 | pio = "0.2.1" |
diff --git a/examples/std/Cargo.toml b/examples/std/Cargo.toml index 12ec40fad..99511292f 100644 --- a/examples/std/Cargo.toml +++ b/examples/std/Cargo.toml | |||
| @@ -24,7 +24,7 @@ nix = "0.26.2" | |||
| 24 | clap = { version = "3.0.0-beta.5", features = ["derive"] } | 24 | clap = { version = "3.0.0-beta.5", features = ["derive"] } |
| 25 | rand_core = { version = "0.6.3", features = ["std"] } | 25 | rand_core = { version = "0.6.3", features = ["std"] } |
| 26 | heapless = { version = "0.7.5", default-features = false } | 26 | heapless = { version = "0.7.5", default-features = false } |
| 27 | static_cell = { version = "1.1", features = ["nightly"]} | 27 | static_cell = { version = "2", features = ["nightly"]} |
| 28 | 28 | ||
| 29 | [profile.release] | 29 | [profile.release] |
| 30 | debug = 2 | 30 | debug = 2 |
diff --git a/examples/stm32f0/Cargo.toml b/examples/stm32f0/Cargo.toml index 953fa5845..3f781d762 100644 --- a/examples/stm32f0/Cargo.toml +++ b/examples/stm32f0/Cargo.toml | |||
| @@ -17,7 +17,8 @@ panic-probe = "0.3" | |||
| 17 | embassy-sync = { version = "0.4.0", path = "../../embassy-sync", features = ["defmt"] } | 17 | embassy-sync = { version = "0.4.0", path = "../../embassy-sync", features = ["defmt"] } |
| 18 | embassy-executor = { version = "0.3.1", path = "../../embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] } | 18 | embassy-executor = { version = "0.3.1", path = "../../embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "executor-interrupt", "defmt", "integrated-timers"] } |
| 19 | embassy-time = { version = "0.1.5", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } | 19 | embassy-time = { version = "0.1.5", path = "../../embassy-time", features = ["defmt", "defmt-timestamp-uptime", "tick-hz-32_768"] } |
| 20 | static_cell = { version = "1.1", features = ["nightly"]} | 20 | static_cell = { version = "2", features = ["nightly"]} |
| 21 | portable-atomic = { version = "1.5", features = ["unsafe-assume-single-core"] } | ||
| 21 | 22 | ||
| 22 | [profile.release] | 23 | [profile.release] |
| 23 | debug = 2 | 24 | debug = 2 |
diff --git a/examples/stm32f3/Cargo.toml b/examples/stm32f3/Cargo.toml index 548191ca6..0ab25c4c2 100644 --- a/examples/stm32f3/Cargo.toml +++ b/examples/stm32f3/Cargo.toml | |||
| @@ -24,7 +24,7 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa | |||
| 24 | heapless = { version = "0.7.5", default-features = false } | 24 | heapless = { version = "0.7.5", default-features = false } |
| 25 | nb = "1.0.0" | 25 | nb = "1.0.0" |
| 26 | embedded-storage = "0.3.0" | 26 | embedded-storage = "0.3.0" |
| 27 | static_cell = { version = "1.1", features = ["nightly"]} | 27 | static_cell = { version = "2", features = ["nightly"]} |
| 28 | 28 | ||
| 29 | [profile.release] | 29 | [profile.release] |
| 30 | debug = 2 | 30 | debug = 2 |
diff --git a/examples/stm32f334/Cargo.toml b/examples/stm32f334/Cargo.toml index b42cc9961..b3bfde441 100644 --- a/examples/stm32f334/Cargo.toml +++ b/examples/stm32f334/Cargo.toml | |||
| @@ -23,4 +23,4 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa | |||
| 23 | heapless = { version = "0.7.5", default-features = false } | 23 | heapless = { version = "0.7.5", default-features = false } |
| 24 | nb = "1.0.0" | 24 | nb = "1.0.0" |
| 25 | embedded-storage = "0.3.0" | 25 | embedded-storage = "0.3.0" |
| 26 | static_cell = { version = "1.1", features = ["nightly"]} | 26 | static_cell = { version = "2", features = ["nightly"]} |
diff --git a/examples/stm32f4/Cargo.toml b/examples/stm32f4/Cargo.toml index 916d0490b..fca182036 100644 --- a/examples/stm32f4/Cargo.toml +++ b/examples/stm32f4/Cargo.toml | |||
| @@ -27,7 +27,7 @@ heapless = { version = "0.7.5", default-features = false } | |||
| 27 | nb = "1.0.0" | 27 | nb = "1.0.0" |
| 28 | embedded-storage = "0.3.0" | 28 | embedded-storage = "0.3.0" |
| 29 | micromath = "2.0.0" | 29 | micromath = "2.0.0" |
| 30 | static_cell = { version = "1.1", features = ["nightly"]} | 30 | static_cell = { version = "2", features = ["nightly"]} |
| 31 | chrono = { version = "^0.4", default-features = false} | 31 | chrono = { version = "^0.4", default-features = false} |
| 32 | 32 | ||
| 33 | [profile.release] | 33 | [profile.release] |
diff --git a/examples/stm32f7/Cargo.toml b/examples/stm32f7/Cargo.toml index 35757e623..0a567d046 100644 --- a/examples/stm32f7/Cargo.toml +++ b/examples/stm32f7/Cargo.toml | |||
| @@ -27,7 +27,7 @@ nb = "1.0.0" | |||
| 27 | rand_core = "0.6.3" | 27 | rand_core = "0.6.3" |
| 28 | critical-section = "1.1" | 28 | critical-section = "1.1" |
| 29 | embedded-storage = "0.3.0" | 29 | embedded-storage = "0.3.0" |
| 30 | static_cell = { version = "1.1", features = ["nightly"]} | 30 | static_cell = { version = "2", features = ["nightly"]} |
| 31 | 31 | ||
| 32 | [profile.release] | 32 | [profile.release] |
| 33 | debug = 2 | 33 | debug = 2 |
diff --git a/examples/stm32g0/Cargo.toml b/examples/stm32g0/Cargo.toml index fb7f780f9..42d7d328f 100644 --- a/examples/stm32g0/Cargo.toml +++ b/examples/stm32g0/Cargo.toml | |||
| @@ -20,6 +20,7 @@ embedded-hal = "0.2.6" | |||
| 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 22 | heapless = { version = "0.7.5", default-features = false } | 22 | heapless = { version = "0.7.5", default-features = false } |
| 23 | portable-atomic = { version = "1.5", features = ["unsafe-assume-single-core"] } | ||
| 23 | 24 | ||
| 24 | [profile.release] | 25 | [profile.release] |
| 25 | debug = 2 | 26 | debug = 2 |
diff --git a/examples/stm32h5/Cargo.toml b/examples/stm32h5/Cargo.toml index c4f41d1cf..db56b685a 100644 --- a/examples/stm32h5/Cargo.toml +++ b/examples/stm32h5/Cargo.toml | |||
| @@ -31,7 +31,7 @@ critical-section = "1.1" | |||
| 31 | micromath = "2.0.0" | 31 | micromath = "2.0.0" |
| 32 | stm32-fmc = "0.3.0" | 32 | stm32-fmc = "0.3.0" |
| 33 | embedded-storage = "0.3.0" | 33 | embedded-storage = "0.3.0" |
| 34 | static_cell = { version = "1.1", features = ["nightly"]} | 34 | static_cell = { version = "2", features = ["nightly"]} |
| 35 | 35 | ||
| 36 | # cargo build/run | 36 | # cargo build/run |
| 37 | [profile.dev] | 37 | [profile.dev] |
diff --git a/examples/stm32h7/Cargo.toml b/examples/stm32h7/Cargo.toml index d6b14a602..c300c8644 100644 --- a/examples/stm32h7/Cargo.toml +++ b/examples/stm32h7/Cargo.toml | |||
| @@ -31,7 +31,7 @@ critical-section = "1.1" | |||
| 31 | micromath = "2.0.0" | 31 | micromath = "2.0.0" |
| 32 | stm32-fmc = "0.3.0" | 32 | stm32-fmc = "0.3.0" |
| 33 | embedded-storage = "0.3.0" | 33 | embedded-storage = "0.3.0" |
| 34 | static_cell = { version = "1.1", features = ["nightly"]} | 34 | static_cell = { version = "2", features = ["nightly"]} |
| 35 | chrono = { version = "^0.4", default-features = false } | 35 | chrono = { version = "^0.4", default-features = false } |
| 36 | 36 | ||
| 37 | # cargo build/run | 37 | # cargo build/run |
diff --git a/examples/stm32l0/Cargo.toml b/examples/stm32l0/Cargo.toml index edd1d0261..e294d0422 100644 --- a/examples/stm32l0/Cargo.toml +++ b/examples/stm32l0/Cargo.toml | |||
| @@ -33,7 +33,8 @@ panic-probe = { version = "0.3", features = ["print-defmt"] } | |||
| 33 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 33 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 34 | heapless = { version = "0.7.5", default-features = false } | 34 | heapless = { version = "0.7.5", default-features = false } |
| 35 | embedded-hal = "0.2.6" | 35 | embedded-hal = "0.2.6" |
| 36 | static_cell = "1.1" | 36 | static_cell = { version = "2" } |
| 37 | portable-atomic = { version = "1.5", features = ["unsafe-assume-single-core"] } | ||
| 37 | 38 | ||
| 38 | [profile.release] | 39 | [profile.release] |
| 39 | debug = 2 | 40 | debug = 2 |
diff --git a/examples/stm32l4/Cargo.toml b/examples/stm32l4/Cargo.toml index 2fbba4634..5d79cf1ed 100644 --- a/examples/stm32l4/Cargo.toml +++ b/examples/stm32l4/Cargo.toml | |||
| @@ -32,7 +32,7 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa | |||
| 32 | heapless = { version = "0.7.5", default-features = false } | 32 | heapless = { version = "0.7.5", default-features = false } |
| 33 | chrono = { version = "^0.4", default-features = false } | 33 | chrono = { version = "^0.4", default-features = false } |
| 34 | rand = { version = "0.8.5", default-features = false } | 34 | rand = { version = "0.8.5", default-features = false } |
| 35 | static_cell = {version = "1.1", features = ["nightly"]} | 35 | static_cell = { version = "2", features = ["nightly"]} |
| 36 | 36 | ||
| 37 | micromath = "2.0.0" | 37 | micromath = "2.0.0" |
| 38 | 38 | ||
diff --git a/examples/stm32l5/Cargo.toml b/examples/stm32l5/Cargo.toml index 2457b40d7..1cd32892d 100644 --- a/examples/stm32l5/Cargo.toml +++ b/examples/stm32l5/Cargo.toml | |||
| @@ -26,7 +26,7 @@ futures = { version = "0.3.17", default-features = false, features = ["async-awa | |||
| 26 | heapless = { version = "0.7.5", default-features = false } | 26 | heapless = { version = "0.7.5", default-features = false } |
| 27 | rand_core = { version = "0.6.3", default-features = false } | 27 | rand_core = { version = "0.6.3", default-features = false } |
| 28 | embedded-io-async = { version = "0.6.0" } | 28 | embedded-io-async = { version = "0.6.0" } |
| 29 | static_cell = { version = "1.1", features = ["nightly"]} | 29 | static_cell = { version = "2", features = ["nightly"]} |
| 30 | 30 | ||
| 31 | [profile.release] | 31 | [profile.release] |
| 32 | debug = 2 | 32 | debug = 2 |
diff --git a/examples/stm32wb/Cargo.toml b/examples/stm32wb/Cargo.toml index 5864906d0..daacc11c4 100644 --- a/examples/stm32wb/Cargo.toml +++ b/examples/stm32wb/Cargo.toml | |||
| @@ -22,7 +22,7 @@ embedded-hal = "0.2.6" | |||
| 22 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 22 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 23 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 23 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 24 | heapless = { version = "0.7.5", default-features = false } | 24 | heapless = { version = "0.7.5", default-features = false } |
| 25 | static_cell = { version = "1.1", features = ["nightly"]} | 25 | static_cell = { version = "2", features = ["nightly"]} |
| 26 | 26 | ||
| 27 | [features] | 27 | [features] |
| 28 | default = ["ble", "mac"] | 28 | default = ["ble", "mac"] |
diff --git a/examples/stm32wba/Cargo.toml b/examples/stm32wba/Cargo.toml index 12e0e5ab0..c52848500 100644 --- a/examples/stm32wba/Cargo.toml +++ b/examples/stm32wba/Cargo.toml | |||
| @@ -20,7 +20,7 @@ embedded-hal = "0.2.6" | |||
| 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } | 20 | panic-probe = { version = "0.3", features = ["print-defmt"] } |
| 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 21 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 22 | heapless = { version = "0.7.5", default-features = false } | 22 | heapless = { version = "0.7.5", default-features = false } |
| 23 | static_cell = { version = "1.1", features = ["nightly"]} | 23 | static_cell = { version = "2", features = ["nightly"]} |
| 24 | 24 | ||
| 25 | [profile.release] | 25 | [profile.release] |
| 26 | debug = 2 | 26 | debug = 2 |
diff --git a/tests/nrf/Cargo.toml b/tests/nrf/Cargo.toml index 6441d5c30..f7a104090 100644 --- a/tests/nrf/Cargo.toml +++ b/tests/nrf/Cargo.toml | |||
| @@ -18,7 +18,7 @@ embassy-net-esp-hosted = { version = "0.1.0", path = "../../embassy-net-esp-host | |||
| 18 | embassy-net-enc28j60 = { version = "0.1.0", path = "../../embassy-net-enc28j60", features = ["defmt"] } | 18 | embassy-net-enc28j60 = { version = "0.1.0", path = "../../embassy-net-enc28j60", features = ["defmt"] } |
| 19 | embedded-hal-async = { version = "1.0.0-rc.1" } | 19 | embedded-hal-async = { version = "1.0.0-rc.1" } |
| 20 | embedded-hal-bus = { version = "0.1.0-rc.1", features = ["async"] } | 20 | embedded-hal-bus = { version = "0.1.0-rc.1", features = ["async"] } |
| 21 | static_cell = { version = "1.1", features = [ "nightly" ] } | 21 | static_cell = { version = "2", features = [ "nightly" ] } |
| 22 | perf-client = { path = "../perf-client" } | 22 | perf-client = { path = "../perf-client" } |
| 23 | 23 | ||
| 24 | defmt = "0.3" | 24 | defmt = "0.3" |
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index d947568ba..1bf149c90 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml | |||
| @@ -31,7 +31,8 @@ panic-probe = { version = "0.3.0", features = ["print-defmt"] } | |||
| 31 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 31 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 32 | embedded-io-async = { version = "0.6.0" } | 32 | embedded-io-async = { version = "0.6.0" } |
| 33 | embedded-storage = { version = "0.3" } | 33 | embedded-storage = { version = "0.3" } |
| 34 | static_cell = { version = "1.1", features = ["nightly"]} | 34 | static_cell = { version = "2", features = ["nightly"]} |
| 35 | portable-atomic = { version = "1.5", features = ["critical-section"] } | ||
| 35 | pio = "0.2" | 36 | pio = "0.2" |
| 36 | pio-proc = "0.2" | 37 | pio-proc = "0.2" |
| 37 | rand = { version = "0.8.5", default-features = false } | 38 | rand = { version = "0.8.5", default-features = false } |
diff --git a/tests/rp/src/bin/gpio_multicore.rs b/tests/rp/src/bin/gpio_multicore.rs index 6ab7f6717..a4923b6ba 100644 --- a/tests/rp/src/bin/gpio_multicore.rs +++ b/tests/rp/src/bin/gpio_multicore.rs | |||
| @@ -5,12 +5,12 @@ teleprobe_meta::target!(b"rpi-pico"); | |||
| 5 | 5 | ||
| 6 | use defmt::{info, unwrap}; | 6 | use defmt::{info, unwrap}; |
| 7 | use embassy_executor::Executor; | 7 | use embassy_executor::Executor; |
| 8 | use embassy_executor::_export::StaticCell; | ||
| 9 | use embassy_rp::gpio::{Input, Level, Output, Pull}; | 8 | use embassy_rp::gpio::{Input, Level, Output, Pull}; |
| 10 | use embassy_rp::multicore::{spawn_core1, Stack}; | 9 | use embassy_rp::multicore::{spawn_core1, Stack}; |
| 11 | use embassy_rp::peripherals::{PIN_0, PIN_1}; | 10 | use embassy_rp::peripherals::{PIN_0, PIN_1}; |
| 12 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | 11 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; |
| 13 | use embassy_sync::channel::Channel; | 12 | use embassy_sync::channel::Channel; |
| 13 | use static_cell::StaticCell; | ||
| 14 | use {defmt_rtt as _, panic_probe as _}; | 14 | use {defmt_rtt as _, panic_probe as _}; |
| 15 | 15 | ||
| 16 | static mut CORE1_STACK: Stack<1024> = Stack::new(); | 16 | static mut CORE1_STACK: Stack<1024> = Stack::new(); |
diff --git a/tests/rp/src/bin/i2c.rs b/tests/rp/src/bin/i2c.rs index 425f2d086..7ddb71c7d 100644 --- a/tests/rp/src/bin/i2c.rs +++ b/tests/rp/src/bin/i2c.rs | |||
| @@ -5,12 +5,12 @@ teleprobe_meta::target!(b"rpi-pico"); | |||
| 5 | 5 | ||
| 6 | use defmt::{assert_eq, info, panic, unwrap}; | 6 | use defmt::{assert_eq, info, panic, unwrap}; |
| 7 | use embassy_executor::Executor; | 7 | use embassy_executor::Executor; |
| 8 | use embassy_executor::_export::StaticCell; | ||
| 9 | use embassy_rp::multicore::{spawn_core1, Stack}; | 8 | use embassy_rp::multicore::{spawn_core1, Stack}; |
| 10 | use embassy_rp::peripherals::{I2C0, I2C1}; | 9 | use embassy_rp::peripherals::{I2C0, I2C1}; |
| 11 | use embassy_rp::{bind_interrupts, i2c, i2c_slave}; | 10 | use embassy_rp::{bind_interrupts, i2c, i2c_slave}; |
| 12 | use embedded_hal_1::i2c::Operation; | 11 | use embedded_hal_1::i2c::Operation; |
| 13 | use embedded_hal_async::i2c::I2c; | 12 | use embedded_hal_async::i2c::I2c; |
| 13 | use static_cell::StaticCell; | ||
| 14 | use {defmt_rtt as _, panic_probe as _, panic_probe as _, panic_probe as _}; | 14 | use {defmt_rtt as _, panic_probe as _, panic_probe as _, panic_probe as _}; |
| 15 | 15 | ||
| 16 | static mut CORE1_STACK: Stack<1024> = Stack::new(); | 16 | static mut CORE1_STACK: Stack<1024> = Stack::new(); |
diff --git a/tests/rp/src/bin/multicore.rs b/tests/rp/src/bin/multicore.rs index f4188135e..6560b6c8d 100644 --- a/tests/rp/src/bin/multicore.rs +++ b/tests/rp/src/bin/multicore.rs | |||
| @@ -5,10 +5,10 @@ teleprobe_meta::target!(b"rpi-pico"); | |||
| 5 | 5 | ||
| 6 | use defmt::{info, unwrap}; | 6 | use defmt::{info, unwrap}; |
| 7 | use embassy_executor::Executor; | 7 | use embassy_executor::Executor; |
| 8 | use embassy_executor::_export::StaticCell; | ||
| 9 | use embassy_rp::multicore::{spawn_core1, Stack}; | 8 | use embassy_rp::multicore::{spawn_core1, Stack}; |
| 10 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; | 9 | use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; |
| 11 | use embassy_sync::channel::Channel; | 10 | use embassy_sync::channel::Channel; |
| 11 | use static_cell::StaticCell; | ||
| 12 | use {defmt_rtt as _, panic_probe as _}; | 12 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | 13 | ||
| 14 | static mut CORE1_STACK: Stack<1024> = Stack::new(); | 14 | static mut CORE1_STACK: Stack<1024> = Stack::new(); |
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index 1ca14ee87..14f27678f 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -8,8 +8,8 @@ autobins = false | |||
| 8 | [features] | 8 | [features] |
| 9 | stm32f103c8 = ["embassy-stm32/stm32f103c8", "not-gpdma"] | 9 | stm32f103c8 = ["embassy-stm32/stm32f103c8", "not-gpdma"] |
| 10 | stm32f429zi = ["embassy-stm32/stm32f429zi", "chrono", "eth", "stop", "can", "not-gpdma", "dac-adc-pin", "rng"] | 10 | stm32f429zi = ["embassy-stm32/stm32f429zi", "chrono", "eth", "stop", "can", "not-gpdma", "dac-adc-pin", "rng"] |
| 11 | stm32g071rb = ["embassy-stm32/stm32g071rb", "not-gpdma", "dac-adc-pin"] | 11 | stm32g071rb = ["embassy-stm32/stm32g071rb", "cm0", "not-gpdma", "dac-adc-pin"] |
| 12 | stm32c031c6 = ["embassy-stm32/stm32c031c6", "not-gpdma"] | 12 | stm32c031c6 = ["embassy-stm32/stm32c031c6", "cm0", "not-gpdma"] |
| 13 | stm32g491re = ["embassy-stm32/stm32g491re", "chrono", "not-gpdma", "rng"] | 13 | stm32g491re = ["embassy-stm32/stm32g491re", "chrono", "not-gpdma", "rng"] |
| 14 | stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "chrono", "not-gpdma", "eth", "dac-adc-pin", "rng"] | 14 | stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "chrono", "not-gpdma", "eth", "dac-adc-pin", "rng"] |
| 15 | stm32h753zi = ["embassy-stm32/stm32h753zi", "chrono", "not-gpdma", "eth", "rng"] | 15 | stm32h753zi = ["embassy-stm32/stm32h753zi", "chrono", "not-gpdma", "eth", "rng"] |
| @@ -19,7 +19,7 @@ stm32h563zi = ["embassy-stm32/stm32h563zi", "chrono", "eth", "rng"] | |||
| 19 | stm32u585ai = ["embassy-stm32/stm32u585ai", "chrono", "rng"] | 19 | stm32u585ai = ["embassy-stm32/stm32u585ai", "chrono", "rng"] |
| 20 | stm32u5a5zj = ["embassy-stm32/stm32u5a5zj", "chrono", "rng"] | 20 | stm32u5a5zj = ["embassy-stm32/stm32u5a5zj", "chrono", "rng"] |
| 21 | stm32wba52cg = ["embassy-stm32/stm32wba52cg", "chrono", "rng"] | 21 | stm32wba52cg = ["embassy-stm32/stm32wba52cg", "chrono", "rng"] |
| 22 | stm32l073rz = ["embassy-stm32/stm32l073rz", "not-gpdma", "rng"] | 22 | stm32l073rz = ["embassy-stm32/stm32l073rz", "cm0", "not-gpdma", "rng"] |
| 23 | stm32l152re = ["embassy-stm32/stm32l152re", "chrono", "not-gpdma"] | 23 | stm32l152re = ["embassy-stm32/stm32l152re", "chrono", "not-gpdma"] |
| 24 | stm32l4a6zg = ["embassy-stm32/stm32l4a6zg", "chrono", "not-gpdma", "rng"] | 24 | stm32l4a6zg = ["embassy-stm32/stm32l4a6zg", "chrono", "not-gpdma", "rng"] |
| 25 | stm32l4r5zi = ["embassy-stm32/stm32l4r5zi", "chrono", "not-gpdma", "rng"] | 25 | stm32l4r5zi = ["embassy-stm32/stm32l4r5zi", "chrono", "not-gpdma", "rng"] |
| @@ -42,6 +42,8 @@ embassy-stm32-wpan = [] | |||
| 42 | not-gpdma = [] | 42 | not-gpdma = [] |
| 43 | dac-adc-pin = [] | 43 | dac-adc-pin = [] |
| 44 | 44 | ||
| 45 | cm0 = ["portable-atomic/unsafe-assume-single-core"] | ||
| 46 | |||
| 45 | [dependencies] | 47 | [dependencies] |
| 46 | teleprobe-meta = "1" | 48 | teleprobe-meta = "1" |
| 47 | 49 | ||
| @@ -66,7 +68,8 @@ micromath = "2.0.0" | |||
| 66 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } | 68 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } |
| 67 | rand_core = { version = "0.6", default-features = false } | 69 | rand_core = { version = "0.6", default-features = false } |
| 68 | rand_chacha = { version = "0.3", default-features = false } | 70 | rand_chacha = { version = "0.3", default-features = false } |
| 69 | static_cell = {version = "1.1", features = ["nightly"] } | 71 | static_cell = { version = "2", features = ["nightly"] } |
| 72 | portable-atomic = { version = "1.5", features = [] } | ||
| 70 | 73 | ||
| 71 | chrono = { version = "^0.4", default-features = false, optional = true} | 74 | chrono = { version = "^0.4", default-features = false, optional = true} |
| 72 | 75 | ||
