diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-07-04 19:53:06 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-07-04 19:59:36 +0200 |
| commit | a101d9078deb3ad576a40b6d5f4d6e81dcfd528e (patch) | |
| tree | 98deed296973aa29dc1701f69ecbe342d2a2c7c5 /tests | |
| parent | b2f843a4ce2dc9114a135f612e1a408a8fe02fab (diff) | |
update embedded-hal crates.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/nrf/Cargo.toml | 4 | ||||
| -rw-r--r-- | tests/nrf/src/bin/wifi_esp_hosted_perf.rs | 6 | ||||
| -rw-r--r-- | tests/rp/Cargo.toml | 4 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/nrf/Cargo.toml b/tests/nrf/Cargo.toml index 4f9ecc47a..247287e46 100644 --- a/tests/nrf/Cargo.toml +++ b/tests/nrf/Cargo.toml | |||
| @@ -10,12 +10,12 @@ teleprobe-meta = "1" | |||
| 10 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 10 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
| 11 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt", "nightly"] } | 11 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt", "nightly"] } |
| 12 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "nightly", "integrated-timers"] } | 12 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "nightly", "integrated-timers"] } |
| 13 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "nightly", "defmt-timestamp-uptime"] } | 13 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "nightly", "unstable-traits", "defmt-timestamp-uptime"] } |
| 14 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nightly", "unstable-traits", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] } | 14 | embassy-nrf = { version = "0.1.0", path = "../../embassy-nrf", features = ["defmt", "nightly", "unstable-traits", "nrf52840", "time-driver-rtc1", "gpiote", "unstable-pac"] } |
| 15 | embedded-io = { version = "0.4.0", features = ["async"] } | 15 | embedded-io = { version = "0.4.0", features = ["async"] } |
| 16 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "nightly"] } | 16 | embassy-net = { version = "0.1.0", path = "../../embassy-net", features = ["defmt", "tcp", "dhcpv4", "medium-ethernet", "nightly"] } |
| 17 | embassy-net-esp-hosted = { version = "0.1.0", path = "../../embassy-net-esp-hosted", features = ["defmt"] } | 17 | embassy-net-esp-hosted = { version = "0.1.0", path = "../../embassy-net-esp-hosted", features = ["defmt"] } |
| 18 | embedded-hal-async = { version = "0.2.0-alpha.1" } | 18 | embedded-hal-async = { version = "0.2.0-alpha.2" } |
| 19 | static_cell = { version = "1.1", features = [ "nightly" ] } | 19 | static_cell = { version = "1.1", features = [ "nightly" ] } |
| 20 | 20 | ||
| 21 | defmt = "0.3" | 21 | defmt = "0.3" |
diff --git a/tests/nrf/src/bin/wifi_esp_hosted_perf.rs b/tests/nrf/src/bin/wifi_esp_hosted_perf.rs index 277b985c5..398ab9d27 100644 --- a/tests/nrf/src/bin/wifi_esp_hosted_perf.rs +++ b/tests/nrf/src/bin/wifi_esp_hosted_perf.rs | |||
| @@ -14,7 +14,7 @@ use embassy_nrf::gpio::{AnyPin, Input, Level, Output, OutputDrive, Pin, Pull}; | |||
| 14 | use embassy_nrf::rng::Rng; | 14 | use embassy_nrf::rng::Rng; |
| 15 | use embassy_nrf::spim::{self, Spim}; | 15 | use embassy_nrf::spim::{self, Spim}; |
| 16 | use embassy_nrf::{bind_interrupts, peripherals}; | 16 | use embassy_nrf::{bind_interrupts, peripherals}; |
| 17 | use embassy_time::{with_timeout, Duration, Timer}; | 17 | use embassy_time::{with_timeout, Delay, Duration, Timer}; |
| 18 | use embedded_hal_async::spi::ExclusiveDevice; | 18 | use embedded_hal_async::spi::ExclusiveDevice; |
| 19 | use static_cell::make_static; | 19 | use static_cell::make_static; |
| 20 | use {defmt_rtt as _, embassy_net_esp_hosted as hosted, panic_probe as _}; | 20 | use {defmt_rtt as _, embassy_net_esp_hosted as hosted, panic_probe as _}; |
| @@ -30,7 +30,7 @@ bind_interrupts!(struct Irqs { | |||
| 30 | async fn wifi_task( | 30 | async fn wifi_task( |
| 31 | runner: hosted::Runner< | 31 | runner: hosted::Runner< |
| 32 | 'static, | 32 | 'static, |
| 33 | ExclusiveDevice<Spim<'static, peripherals::SPI3>, Output<'static, peripherals::P0_31>>, | 33 | ExclusiveDevice<Spim<'static, peripherals::SPI3>, Output<'static, peripherals::P0_31>, Delay>, |
| 34 | Input<'static, AnyPin>, | 34 | Input<'static, AnyPin>, |
| 35 | Output<'static, peripherals::P1_05>, | 35 | Output<'static, peripherals::P1_05>, |
| 36 | >, | 36 | >, |
| @@ -63,7 +63,7 @@ async fn main(spawner: Spawner) { | |||
| 63 | config.frequency = spim::Frequency::M32; | 63 | config.frequency = spim::Frequency::M32; |
| 64 | config.mode = spim::MODE_2; // !!! | 64 | config.mode = spim::MODE_2; // !!! |
| 65 | let spi = spim::Spim::new(p.SPI3, Irqs, sck, miso, mosi, config); | 65 | let spi = spim::Spim::new(p.SPI3, Irqs, sck, miso, mosi, config); |
| 66 | let spi = ExclusiveDevice::new(spi, cs); | 66 | let spi = ExclusiveDevice::new(spi, cs, Delay); |
| 67 | 67 | ||
| 68 | let (device, mut control, runner) = embassy_net_esp_hosted::new( | 68 | let (device, mut control, runner) = embassy_net_esp_hosted::new( |
| 69 | make_static!(embassy_net_esp_hosted::State::new()), | 69 | make_static!(embassy_net_esp_hosted::State::new()), |
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index 180d0ebbe..f1b48e747 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml | |||
| @@ -22,8 +22,8 @@ defmt-rtt = "0.4" | |||
| 22 | cortex-m = { version = "0.7.6" } | 22 | cortex-m = { version = "0.7.6" } |
| 23 | cortex-m-rt = "0.7.0" | 23 | cortex-m-rt = "0.7.0" |
| 24 | embedded-hal = "0.2.6" | 24 | embedded-hal = "0.2.6" |
| 25 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.10" } | 25 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.11" } |
| 26 | embedded-hal-async = { version = "=0.2.0-alpha.1" } | 26 | embedded-hal-async = { version = "=0.2.0-alpha.2" } |
| 27 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } | 27 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } |
| 28 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } | 28 | futures = { version = "0.3.17", default-features = false, features = ["async-await"] } |
| 29 | embedded-io = { version = "0.4.0", features = ["async"] } | 29 | embedded-io = { version = "0.4.0", features = ["async"] } |
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index c2422f7bc..c69af6d5a 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -38,8 +38,8 @@ defmt-rtt = "0.4" | |||
| 38 | cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } | 38 | cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] } |
| 39 | cortex-m-rt = "0.7.0" | 39 | cortex-m-rt = "0.7.0" |
| 40 | embedded-hal = "0.2.6" | 40 | embedded-hal = "0.2.6" |
| 41 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.10" } | 41 | embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.11" } |
| 42 | embedded-hal-async = { version = "=0.2.0-alpha.1" } | 42 | embedded-hal-async = { version = "=0.2.0-alpha.2" } |
| 43 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } | 43 | panic-probe = { version = "0.3.0", features = ["print-defmt"] } |
| 44 | rand_core = { version = "0.6", default-features = false } | 44 | rand_core = { version = "0.6", default-features = false } |
| 45 | rand_chacha = { version = "0.3", default-features = false } | 45 | rand_chacha = { version = "0.3", default-features = false } |
