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 /tests | |
| parent | d6f42eafad5582963a6d4c266f79425ed9b812e0 (diff) | |
Upgrade static-cell to v2.0
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nrf/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/rp/Cargo.toml | 3 | ||||
| -rw-r--r-- | tests/rp/src/bin/gpio_multicore.rs | 2 | ||||
| -rw-r--r-- | tests/rp/src/bin/i2c.rs | 2 | ||||
| -rw-r--r-- | tests/rp/src/bin/multicore.rs | 2 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 11 |
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 | |||
| 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 | ||
