aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-11-02 21:52:07 +0100
committerDario Nieuwenhuis <[email protected]>2023-11-02 21:52:07 +0100
commit1f51367eb92830c4c2c36406444d255fddb6b283 (patch)
treec0b8829121fbe786e8ae922bd0e41dd4022ad40f /tests
parentd6f42eafad5582963a6d4c266f79425ed9b812e0 (diff)
Upgrade static-cell to v2.0
Diffstat (limited to 'tests')
-rw-r--r--tests/nrf/Cargo.toml2
-rw-r--r--tests/rp/Cargo.toml3
-rw-r--r--tests/rp/src/bin/gpio_multicore.rs2
-rw-r--r--tests/rp/src/bin/i2c.rs2
-rw-r--r--tests/rp/src/bin/multicore.rs2
-rw-r--r--tests/stm32/Cargo.toml11
6 files changed, 13 insertions, 9 deletions
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
18embassy-net-enc28j60 = { version = "0.1.0", path = "../../embassy-net-enc28j60", features = ["defmt"] } 18embassy-net-enc28j60 = { version = "0.1.0", path = "../../embassy-net-enc28j60", features = ["defmt"] }
19embedded-hal-async = { version = "1.0.0-rc.1" } 19embedded-hal-async = { version = "1.0.0-rc.1" }
20embedded-hal-bus = { version = "0.1.0-rc.1", features = ["async"] } 20embedded-hal-bus = { version = "0.1.0-rc.1", features = ["async"] }
21static_cell = { version = "1.1", features = [ "nightly" ] } 21static_cell = { version = "2", features = [ "nightly" ] }
22perf-client = { path = "../perf-client" } 22perf-client = { path = "../perf-client" }
23 23
24defmt = "0.3" 24defmt = "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"] }
31futures = { version = "0.3.17", default-features = false, features = ["async-await"] } 31futures = { version = "0.3.17", default-features = false, features = ["async-await"] }
32embedded-io-async = { version = "0.6.0" } 32embedded-io-async = { version = "0.6.0" }
33embedded-storage = { version = "0.3" } 33embedded-storage = { version = "0.3" }
34static_cell = { version = "1.1", features = ["nightly"]} 34static_cell = { version = "2", features = ["nightly"]}
35portable-atomic = { version = "1.5", features = ["critical-section"] }
35pio = "0.2" 36pio = "0.2"
36pio-proc = "0.2" 37pio-proc = "0.2"
37rand = { version = "0.8.5", default-features = false } 38rand = { 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
6use defmt::{info, unwrap}; 6use defmt::{info, unwrap};
7use embassy_executor::Executor; 7use embassy_executor::Executor;
8use embassy_executor::_export::StaticCell;
9use embassy_rp::gpio::{Input, Level, Output, Pull}; 8use embassy_rp::gpio::{Input, Level, Output, Pull};
10use embassy_rp::multicore::{spawn_core1, Stack}; 9use embassy_rp::multicore::{spawn_core1, Stack};
11use embassy_rp::peripherals::{PIN_0, PIN_1}; 10use embassy_rp::peripherals::{PIN_0, PIN_1};
12use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; 11use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
13use embassy_sync::channel::Channel; 12use embassy_sync::channel::Channel;
13use static_cell::StaticCell;
14use {defmt_rtt as _, panic_probe as _}; 14use {defmt_rtt as _, panic_probe as _};
15 15
16static mut CORE1_STACK: Stack<1024> = Stack::new(); 16static 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
6use defmt::{assert_eq, info, panic, unwrap}; 6use defmt::{assert_eq, info, panic, unwrap};
7use embassy_executor::Executor; 7use embassy_executor::Executor;
8use embassy_executor::_export::StaticCell;
9use embassy_rp::multicore::{spawn_core1, Stack}; 8use embassy_rp::multicore::{spawn_core1, Stack};
10use embassy_rp::peripherals::{I2C0, I2C1}; 9use embassy_rp::peripherals::{I2C0, I2C1};
11use embassy_rp::{bind_interrupts, i2c, i2c_slave}; 10use embassy_rp::{bind_interrupts, i2c, i2c_slave};
12use embedded_hal_1::i2c::Operation; 11use embedded_hal_1::i2c::Operation;
13use embedded_hal_async::i2c::I2c; 12use embedded_hal_async::i2c::I2c;
13use static_cell::StaticCell;
14use {defmt_rtt as _, panic_probe as _, panic_probe as _, panic_probe as _}; 14use {defmt_rtt as _, panic_probe as _, panic_probe as _, panic_probe as _};
15 15
16static mut CORE1_STACK: Stack<1024> = Stack::new(); 16static 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
6use defmt::{info, unwrap}; 6use defmt::{info, unwrap};
7use embassy_executor::Executor; 7use embassy_executor::Executor;
8use embassy_executor::_export::StaticCell;
9use embassy_rp::multicore::{spawn_core1, Stack}; 8use embassy_rp::multicore::{spawn_core1, Stack};
10use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; 9use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex;
11use embassy_sync::channel::Channel; 10use embassy_sync::channel::Channel;
11use static_cell::StaticCell;
12use {defmt_rtt as _, panic_probe as _}; 12use {defmt_rtt as _, panic_probe as _};
13 13
14static mut CORE1_STACK: Stack<1024> = Stack::new(); 14static 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]
9stm32f103c8 = ["embassy-stm32/stm32f103c8", "not-gpdma"] 9stm32f103c8 = ["embassy-stm32/stm32f103c8", "not-gpdma"]
10stm32f429zi = ["embassy-stm32/stm32f429zi", "chrono", "eth", "stop", "can", "not-gpdma", "dac-adc-pin", "rng"] 10stm32f429zi = ["embassy-stm32/stm32f429zi", "chrono", "eth", "stop", "can", "not-gpdma", "dac-adc-pin", "rng"]
11stm32g071rb = ["embassy-stm32/stm32g071rb", "not-gpdma", "dac-adc-pin"] 11stm32g071rb = ["embassy-stm32/stm32g071rb", "cm0", "not-gpdma", "dac-adc-pin"]
12stm32c031c6 = ["embassy-stm32/stm32c031c6", "not-gpdma"] 12stm32c031c6 = ["embassy-stm32/stm32c031c6", "cm0", "not-gpdma"]
13stm32g491re = ["embassy-stm32/stm32g491re", "chrono", "not-gpdma", "rng"] 13stm32g491re = ["embassy-stm32/stm32g491re", "chrono", "not-gpdma", "rng"]
14stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "chrono", "not-gpdma", "eth", "dac-adc-pin", "rng"] 14stm32h755zi = ["embassy-stm32/stm32h755zi-cm7", "chrono", "not-gpdma", "eth", "dac-adc-pin", "rng"]
15stm32h753zi = ["embassy-stm32/stm32h753zi", "chrono", "not-gpdma", "eth", "rng"] 15stm32h753zi = ["embassy-stm32/stm32h753zi", "chrono", "not-gpdma", "eth", "rng"]
@@ -19,7 +19,7 @@ stm32h563zi = ["embassy-stm32/stm32h563zi", "chrono", "eth", "rng"]
19stm32u585ai = ["embassy-stm32/stm32u585ai", "chrono", "rng"] 19stm32u585ai = ["embassy-stm32/stm32u585ai", "chrono", "rng"]
20stm32u5a5zj = ["embassy-stm32/stm32u5a5zj", "chrono", "rng"] 20stm32u5a5zj = ["embassy-stm32/stm32u5a5zj", "chrono", "rng"]
21stm32wba52cg = ["embassy-stm32/stm32wba52cg", "chrono", "rng"] 21stm32wba52cg = ["embassy-stm32/stm32wba52cg", "chrono", "rng"]
22stm32l073rz = ["embassy-stm32/stm32l073rz", "not-gpdma", "rng"] 22stm32l073rz = ["embassy-stm32/stm32l073rz", "cm0", "not-gpdma", "rng"]
23stm32l152re = ["embassy-stm32/stm32l152re", "chrono", "not-gpdma"] 23stm32l152re = ["embassy-stm32/stm32l152re", "chrono", "not-gpdma"]
24stm32l4a6zg = ["embassy-stm32/stm32l4a6zg", "chrono", "not-gpdma", "rng"] 24stm32l4a6zg = ["embassy-stm32/stm32l4a6zg", "chrono", "not-gpdma", "rng"]
25stm32l4r5zi = ["embassy-stm32/stm32l4r5zi", "chrono", "not-gpdma", "rng"] 25stm32l4r5zi = ["embassy-stm32/stm32l4r5zi", "chrono", "not-gpdma", "rng"]
@@ -42,6 +42,8 @@ embassy-stm32-wpan = []
42not-gpdma = [] 42not-gpdma = []
43dac-adc-pin = [] 43dac-adc-pin = []
44 44
45cm0 = ["portable-atomic/unsafe-assume-single-core"]
46
45[dependencies] 47[dependencies]
46teleprobe-meta = "1" 48teleprobe-meta = "1"
47 49
@@ -66,7 +68,8 @@ micromath = "2.0.0"
66panic-probe = { version = "0.3.0", features = ["print-defmt"] } 68panic-probe = { version = "0.3.0", features = ["print-defmt"] }
67rand_core = { version = "0.6", default-features = false } 69rand_core = { version = "0.6", default-features = false }
68rand_chacha = { version = "0.3", default-features = false } 70rand_chacha = { version = "0.3", default-features = false }
69static_cell = {version = "1.1", features = ["nightly"] } 71static_cell = { version = "2", features = ["nightly"] }
72portable-atomic = { version = "1.5", features = [] }
70 73
71chrono = { version = "^0.4", default-features = false, optional = true} 74chrono = { version = "^0.4", default-features = false, optional = true}
72 75