From 638235e72de4f9f888a3ae10b9c9aaee4f41be98 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Wed, 21 Jul 2021 11:05:50 -0400 Subject: [PATCH] Fix up the L0 example for SPI. --- examples/stm32l0/src/bin/spi.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/stm32l0/src/bin/spi.rs b/examples/stm32l0/src/bin/spi.rs index 9bb9b741..5290906e 100644 --- a/examples/stm32l0/src/bin/spi.rs +++ b/examples/stm32l0/src/bin/spi.rs @@ -18,10 +18,11 @@ use embassy_stm32::rcc; use embassy_stm32::spi::{Config, Spi}; use embassy_stm32::time::Hertz; use embedded_hal::blocking::spi::Transfer; +use embassy_stm32::dma::NoDma; #[entry] fn main() -> ! { - info!("Hello World, dude!"); + info!("Hello World, folks!"); let mut p = embassy_stm32::init(Default::default()); let mut rcc = rcc::Rcc::new(p.RCC); @@ -32,6 +33,8 @@ fn main() -> ! { p.PB3, p.PA7, p.PA6, + NoDma, + NoDma, Hertz(1_000_000), Config::default(), );