aboutsummaryrefslogtreecommitdiff
path: root/tests/rp
diff options
context:
space:
mode:
authorBailey Townsend <[email protected]>2024-12-28 00:40:52 -0600
committerBailey Townsend <[email protected]>2024-12-28 00:40:52 -0600
commit388103275e8648492e27514e00048492a55a931c (patch)
tree86be0de680099aaa0fbcac5affb1bdbabf4e1b97 /tests/rp
parent8243a8a3892dc499be560a0bf2134e641b856760 (diff)
Fixes ci (hopefully)
Diffstat (limited to 'tests/rp')
-rw-r--r--tests/rp/src/bin/cyw43-perf.rs13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/rp/src/bin/cyw43-perf.rs b/tests/rp/src/bin/cyw43-perf.rs
index 30e4afb07..34119722b 100644
--- a/tests/rp/src/bin/cyw43-perf.rs
+++ b/tests/rp/src/bin/cyw43-perf.rs
@@ -3,7 +3,7 @@
3teleprobe_meta::target!(b"rpi-pico"); 3teleprobe_meta::target!(b"rpi-pico");
4 4
5use cyw43::JoinOptions; 5use cyw43::JoinOptions;
6use cyw43_pio::PioSpi; 6use cyw43_pio::{PioSpi, DEFAULT_CLOCK_DIVIDER};
7use defmt::{panic, *}; 7use defmt::{panic, *};
8use embassy_executor::Spawner; 8use embassy_executor::Spawner;
9use embassy_net::{Config, StackResources}; 9use embassy_net::{Config, StackResources};
@@ -54,7 +54,16 @@ async fn main(spawner: Spawner) {
54 let pwr = Output::new(p.PIN_23, Level::Low); 54 let pwr = Output::new(p.PIN_23, Level::Low);
55 let cs = Output::new(p.PIN_25, Level::High); 55 let cs = Output::new(p.PIN_25, Level::High);
56 let mut pio = Pio::new(p.PIO0, Irqs); 56 let mut pio = Pio::new(p.PIO0, Irqs);
57 let spi = PioSpi::new(&mut pio.common, pio.sm0, pio.irq0, cs, p.PIN_24, p.PIN_29, p.DMA_CH0); 57 let spi = PioSpi::new(
58 &mut pio.common,
59 pio.sm0,
60 DEFAULT_CLOCK_DIVIDER,
61 pio.irq0,
62 cs,
63 p.PIN_24,
64 p.PIN_29,
65 p.DMA_CH0,
66 );
58 67
59 static STATE: StaticCell<cyw43::State> = StaticCell::new(); 68 static STATE: StaticCell<cyw43::State> = StaticCell::new();
60 let state = STATE.init(cyw43::State::new()); 69 let state = STATE.init(cyw43::State::new());