From 889d757ab8bcfc10caf0a7d75ffb7733a7e71ed1 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Wed, 19 Jan 2022 17:29:47 +0100 Subject: stm32/spi: expose all functionality as inherent methods. --- tests/stm32/src/bin/spi.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/stm32/src/bin/spi.rs b/tests/stm32/src/bin/spi.rs index 043505c7b..47d0017ac 100644 --- a/tests/stm32/src/bin/spi.rs +++ b/tests/stm32/src/bin/spi.rs @@ -10,7 +10,6 @@ use embassy_stm32::dma::NoDma; use embassy_stm32::spi::{self, Spi}; use embassy_stm32::time::Hertz; use embassy_stm32::Peripherals; -use embedded_hal::blocking::spi::Transfer; use example_common::*; #[embassy::main(config = "config()")] @@ -38,7 +37,7 @@ async fn main(_spawner: Spawner, p: Peripherals) { // Arduino pins D11 and D12 (MOSI-MISO) are connected together with a 1K resistor. // so we should get the data we sent back. let mut buf = data; - spi.transfer(&mut buf).unwrap(); + spi.blocking_transfer_in_place(&mut buf).unwrap(); assert_eq!(buf, data); info!("Test OK"); -- cgit