aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-06-22 21:11:53 +0200
committerDario Nieuwenhuis <[email protected]>2023-06-22 21:12:24 +0200
commit8bbfa6827cd68f67a50a89b13947542e632d5411 (patch)
tree8d6e3085efad9758fc44b19194b5ea574aa38041 /examples
parent6e65282f185d94a8c449374e6d4ed4eefa5793a4 (diff)
esp-hosted: add perf hil test.
Diffstat (limited to 'examples')
-rw-r--r--examples/nrf52840/src/bin/wifi_esp_hosted.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/nrf52840/src/bin/wifi_esp_hosted.rs b/examples/nrf52840/src/bin/wifi_esp_hosted.rs
index cea45c5c8..4eb31b105 100644
--- a/examples/nrf52840/src/bin/wifi_esp_hosted.rs
+++ b/examples/nrf52840/src/bin/wifi_esp_hosted.rs
@@ -26,7 +26,7 @@ async fn wifi_task(
26 'static, 26 'static,
27 ExclusiveDevice<Spim<'static, peripherals::SPI3>, Output<'static, peripherals::P0_31>>, 27 ExclusiveDevice<Spim<'static, peripherals::SPI3>, Output<'static, peripherals::P0_31>>,
28 Input<'static, AnyPin>, 28 Input<'static, AnyPin>,
29 Output<'static, peripherals::P1_03>, 29 Output<'static, peripherals::P1_05>,
30 >, 30 >,
31) -> ! { 31) -> ! {
32 runner.run().await 32 runner.run().await
@@ -48,11 +48,11 @@ async fn main(spawner: Spawner) {
48 let mosi = p.P0_30; 48 let mosi = p.P0_30;
49 let cs = Output::new(p.P0_31, Level::High, OutputDrive::HighDrive); 49 let cs = Output::new(p.P0_31, Level::High, OutputDrive::HighDrive);
50 let handshake = Input::new(p.P1_01.degrade(), Pull::Up); 50 let handshake = Input::new(p.P1_01.degrade(), Pull::Up);
51 let ready = Input::new(p.P1_02.degrade(), Pull::None); 51 let ready = Input::new(p.P1_04.degrade(), Pull::None);
52 let reset = Output::new(p.P1_03, Level::Low, OutputDrive::Standard); 52 let reset = Output::new(p.P1_05, Level::Low, OutputDrive::Standard);
53 53
54 let mut config = spim::Config::default(); 54 let mut config = spim::Config::default();
55 config.frequency = spim::Frequency::M1; 55 config.frequency = spim::Frequency::M32;
56 config.mode = spim::MODE_2; // !!! 56 config.mode = spim::MODE_2; // !!!
57 let spi = spim::Spim::new(p.SPI3, Irqs, sck, miso, mosi, config); 57 let spi = spim::Spim::new(p.SPI3, Irqs, sck, miso, mosi, config);
58 let spi = ExclusiveDevice::new(spi, cs); 58 let spi = ExclusiveDevice::new(spi, cs);