summaryrefslogtreecommitdiff
path: root/examples/stm32l4/src/bin/spi_blocking_async.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32l4/src/bin/spi_blocking_async.rs')
-rw-r--r--examples/stm32l4/src/bin/spi_blocking_async.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32l4/src/bin/spi_blocking_async.rs b/examples/stm32l4/src/bin/spi_blocking_async.rs
index e06b29b8..a893cef6 100644
--- a/examples/stm32l4/src/bin/spi_blocking_async.rs
+++ b/examples/stm32l4/src/bin/spi_blocking_async.rs
@@ -9,12 +9,12 @@ use embassy_stm32::dma::NoDma;
use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed};
use embassy_stm32::spi::{Config, Spi};
use embassy_stm32::time::Hertz;
-use embassy_stm32::Peripherals;
use embedded_hal_async::spi::SpiBus;
use {defmt_rtt as _, panic_probe as _};
#[embassy_executor::main]
-async fn main(_spawner: Spawner, p: Peripherals) {
+async fn main(_spawner: Spawner) {
+ let p = embassy_stm32::init(Default::default());
info!("Hello World!");
let spi = Spi::new(