diff options
Diffstat (limited to 'tests/rp')
| -rw-r--r-- | tests/rp/src/bin/cyw43-perf.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/rp/src/bin/cyw43-perf.rs b/tests/rp/src/bin/cyw43-perf.rs index 34119722b..dba1058a8 100644 --- a/tests/rp/src/bin/cyw43-perf.rs +++ b/tests/rp/src/bin/cyw43-perf.rs | |||
| @@ -21,7 +21,7 @@ bind_interrupts!(struct Irqs { | |||
| 21 | teleprobe_meta::timeout!(120); | 21 | teleprobe_meta::timeout!(120); |
| 22 | 22 | ||
| 23 | // Test-only wifi network, no internet access! | 23 | // Test-only wifi network, no internet access! |
| 24 | const WIFI_NETWORK: &str = "EmbassyTest"; | 24 | const WIFI_NETWORK: &str = "EmbassyTestWPA2"; |
| 25 | const WIFI_PASSWORD: &str = "V8YxhKt5CdIAJFud"; | 25 | const WIFI_PASSWORD: &str = "V8YxhKt5CdIAJFud"; |
| 26 | 26 | ||
| 27 | #[embassy_executor::task] | 27 | #[embassy_executor::task] |
| @@ -47,9 +47,11 @@ async fn main(spawner: Spawner) { | |||
| 47 | 47 | ||
| 48 | // cyw43 firmware needs to be flashed manually: | 48 | // cyw43 firmware needs to be flashed manually: |
| 49 | // probe-rs download 43439A0.bin --binary-format bin --chip RP2040 --base-address 0x101b0000 | 49 | // probe-rs download 43439A0.bin --binary-format bin --chip RP2040 --base-address 0x101b0000 |
| 50 | // probe-rs download 43439A0_btfw.bin --binary-format bin --chip RP2040 --base-address 0x101f0000 | ||
| 50 | // probe-rs download 43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x101f8000 | 51 | // probe-rs download 43439A0_clm.bin --binary-format bin --chip RP2040 --base-address 0x101f8000 |
| 51 | let fw = unsafe { core::slice::from_raw_parts(0x101b0000 as *const u8, 230321) }; | 52 | let fw = unsafe { core::slice::from_raw_parts(0x101b0000 as *const u8, 231077) }; |
| 52 | let clm = unsafe { core::slice::from_raw_parts(0x101f8000 as *const u8, 4752) }; | 53 | let _btfw = unsafe { core::slice::from_raw_parts(0x101f0000 as *const u8, 6164) }; |
| 54 | let clm = unsafe { core::slice::from_raw_parts(0x101f8000 as *const u8, 984) }; | ||
| 53 | 55 | ||
| 54 | let pwr = Output::new(p.PIN_23, Level::Low); | 56 | let pwr = Output::new(p.PIN_23, Level::Low); |
| 55 | let cs = Output::new(p.PIN_25, Level::High); | 57 | let cs = Output::new(p.PIN_25, Level::High); |
| @@ -104,9 +106,9 @@ async fn main(spawner: Spawner) { | |||
| 104 | perf_client::run( | 106 | perf_client::run( |
| 105 | stack, | 107 | stack, |
| 106 | perf_client::Expected { | 108 | perf_client::Expected { |
| 107 | down_kbps: 300, | 109 | down_kbps: 200, |
| 108 | up_kbps: 300, | 110 | up_kbps: 200, |
| 109 | updown_kbps: 300, | 111 | updown_kbps: 200, |
| 110 | }, | 112 | }, |
| 111 | ) | 113 | ) |
| 112 | .await; | 114 | .await; |
