diff options
| author | Ghaith Oueslati <[email protected]> | 2023-06-12 14:28:23 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-12 14:28:23 +0100 |
| commit | cf83f6820cf2c6ece607cd60cfdab9d5e47efd04 (patch) | |
| tree | 6485dacac7e61c4378ac522e709edb0a86bd7523 /tests | |
| parent | 2dd5ce83ec0421564e85b667f5dabd592f313e5c (diff) | |
| parent | 2d89cfb18f00aefbfa108728dfea3398e80ea3e4 (diff) | |
Merge pull request #3 from OueslatiGhaith/master
fix merge conflicts
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rp/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/rp/src/bin/cyw43-perf.rs | 10 | ||||
| -rw-r--r-- | tests/stm32/Cargo.toml | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/tests/rp/Cargo.toml b/tests/rp/Cargo.toml index fa97fdcc4..180d0ebbe 100644 --- a/tests/rp/Cargo.toml +++ b/tests/rp/Cargo.toml | |||
| @@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0" | |||
| 8 | teleprobe-meta = "1.1" | 8 | teleprobe-meta = "1.1" |
| 9 | 9 | ||
| 10 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } | 10 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } |
| 11 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } | 11 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } |
| 12 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt"] } | 12 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt"] } |
| 13 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "time-driver", "critical-section-impl", "intrinsics", "rom-v2-intrinsics", "run-from-ram"] } | 13 | embassy-rp = { version = "0.1.0", path = "../../embassy-rp", features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "time-driver", "critical-section-impl", "intrinsics", "rom-v2-intrinsics", "run-from-ram"] } |
| 14 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 14 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
diff --git a/tests/rp/src/bin/cyw43-perf.rs b/tests/rp/src/bin/cyw43-perf.rs index 568f1b826..7a94ea191 100644 --- a/tests/rp/src/bin/cyw43-perf.rs +++ b/tests/rp/src/bin/cyw43-perf.rs | |||
| @@ -63,7 +63,7 @@ async fn main(spawner: Spawner) { | |||
| 63 | .set_power_management(cyw43::PowerManagementMode::PowerSave) | 63 | .set_power_management(cyw43::PowerManagementMode::PowerSave) |
| 64 | .await; | 64 | .await; |
| 65 | 65 | ||
| 66 | let config = Config::Dhcp(Default::default()); | 66 | let config = Config::dhcpv4(Default::default()); |
| 67 | //let config = embassy_net::Config::Static(embassy_net::Config { | 67 | //let config = embassy_net::Config::Static(embassy_net::Config { |
| 68 | // address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 2), 24), | 68 | // address: Ipv4Cidr::new(Ipv4Address::new(192, 168, 69, 2), 24), |
| 69 | // dns_servers: Vec::new(), | 69 | // dns_servers: Vec::new(), |
| @@ -93,7 +93,7 @@ async fn main(spawner: Spawner) { | |||
| 93 | } | 93 | } |
| 94 | 94 | ||
| 95 | info!("Waiting for DHCP up..."); | 95 | info!("Waiting for DHCP up..."); |
| 96 | while stack.config().is_none() { | 96 | while stack.config_v4().is_none() { |
| 97 | Timer::after(Duration::from_millis(100)).await; | 97 | Timer::after(Duration::from_millis(100)).await; |
| 98 | } | 98 | } |
| 99 | info!("IP addressing up!"); | 99 | info!("IP addressing up!"); |
| @@ -115,9 +115,9 @@ const WIFI_NETWORK: &str = "EmbassyTest"; | |||
| 115 | const WIFI_PASSWORD: &str = "V8YxhKt5CdIAJFud"; | 115 | const WIFI_PASSWORD: &str = "V8YxhKt5CdIAJFud"; |
| 116 | 116 | ||
| 117 | const TEST_DURATION: usize = 10; | 117 | const TEST_DURATION: usize = 10; |
| 118 | const TEST_EXPECTED_DOWNLOAD_KBPS: usize = 500; | 118 | const TEST_EXPECTED_DOWNLOAD_KBPS: usize = 300; |
| 119 | const TEST_EXPECTED_UPLOAD_KBPS: usize = 500; | 119 | const TEST_EXPECTED_UPLOAD_KBPS: usize = 300; |
| 120 | const TEST_EXPECTED_UPLOAD_DOWNLOAD_KBPS: usize = 400; | 120 | const TEST_EXPECTED_UPLOAD_DOWNLOAD_KBPS: usize = 300; |
| 121 | const RX_BUFFER_SIZE: usize = 4096; | 121 | const RX_BUFFER_SIZE: usize = 4096; |
| 122 | const TX_BUFFER_SIZE: usize = 4096; | 122 | const TX_BUFFER_SIZE: usize = 4096; |
| 123 | const SERVER_ADDRESS: Ipv4Address = Ipv4Address::new(192, 168, 2, 2); | 123 | const SERVER_ADDRESS: Ipv4Address = Ipv4Address::new(192, 168, 2, 2); |
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index f1b0ba121..3f48bf3f1 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -25,7 +25,7 @@ not-gpdma = [] | |||
| 25 | teleprobe-meta = "1" | 25 | teleprobe-meta = "1" |
| 26 | 26 | ||
| 27 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } | 27 | embassy-sync = { version = "0.2.0", path = "../../embassy-sync", features = ["defmt"] } |
| 28 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } | 28 | embassy-executor = { version = "0.2.0", path = "../../embassy-executor", features = ["nightly", "arch-cortex-m", "executor-thread", "defmt", "integrated-timers"] } |
| 29 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "tick-hz-32_768", "defmt-timestamp-uptime"] } | 29 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "tick-hz-32_768", "defmt-timestamp-uptime"] } |
| 30 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-any"] } | 30 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-any"] } |
| 31 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 31 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
