diff options
| author | Bob McWhirter <[email protected]> | 2021-07-21 11:20:03 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-07-23 13:22:39 -0400 |
| commit | e269971597f45ac4138b9097538fbdd7dc7be588 (patch) | |
| tree | 8575e6b39aaa7b88e76fa1974e0ee5565222b85b /examples | |
| parent | 638235e72de4f9f888a3ae10b9c9aaee4f41be98 (diff) | |
Fix extraneous `mut` warnings in L4 example.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32l4/src/bin/spi_dma.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32l4/src/bin/spi_dma.rs b/examples/stm32l4/src/bin/spi_dma.rs index 2d176a3d2..8725f2ca8 100644 --- a/examples/stm32l4/src/bin/spi_dma.rs +++ b/examples/stm32l4/src/bin/spi_dma.rs | |||
| @@ -39,11 +39,11 @@ async fn main_task() { | |||
| 39 | 39 | ||
| 40 | // These are the pins for the Inventek eS-Wifi SPI Wifi Adapter. | 40 | // These are the pins for the Inventek eS-Wifi SPI Wifi Adapter. |
| 41 | 41 | ||
| 42 | let mut boot = Output::new(p.PB12, Level::Low, Speed::VeryHigh); | 42 | let boot = Output::new(p.PB12, Level::Low, Speed::VeryHigh); |
| 43 | let mut wake = Output::new(p.PB13, Level::Low, Speed::VeryHigh); | 43 | let wake = Output::new(p.PB13, Level::Low, Speed::VeryHigh); |
| 44 | let mut reset = Output::new(p.PE8, Level::Low, Speed::VeryHigh); | 44 | let mut reset = Output::new(p.PE8, Level::Low, Speed::VeryHigh); |
| 45 | let mut cs = Output::new(p.PE0, Level::High, Speed::VeryHigh); | 45 | let mut cs = Output::new(p.PE0, Level::High, Speed::VeryHigh); |
| 46 | let mut ready = Input::new(p.PE1, Pull::Up); | 46 | let ready = Input::new(p.PE1, Pull::Up); |
| 47 | 47 | ||
| 48 | cortex_m::asm::delay(100_000); | 48 | cortex_m::asm::delay(100_000); |
| 49 | reset.set_high(); | 49 | reset.set_high(); |
