diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/nrf52840/src/bin/wifi_esp_hosted.rs | 8 |
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); |
