aboutsummaryrefslogtreecommitdiff
path: root/embassy-embedded-hal/src/shared_bus/asynch
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/asynch')
-rw-r--r--embassy-embedded-hal/src/shared_bus/asynch/spi.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/asynch/spi.rs b/embassy-embedded-hal/src/shared_bus/asynch/spi.rs
index c95b59ef0..a3814d6d0 100644
--- a/embassy-embedded-hal/src/shared_bus/asynch/spi.rs
+++ b/embassy-embedded-hal/src/shared_bus/asynch/spi.rs
@@ -29,7 +29,7 @@ use core::future::Future;
29 29
30use embassy_sync::blocking_mutex::raw::RawMutex; 30use embassy_sync::blocking_mutex::raw::RawMutex;
31use embassy_sync::mutex::Mutex; 31use embassy_sync::mutex::Mutex;
32use embedded_hal_1::digital::blocking::OutputPin; 32use embedded_hal_1::digital::OutputPin;
33use embedded_hal_1::spi::ErrorType; 33use embedded_hal_1::spi::ErrorType;
34use embedded_hal_async::spi; 34use embedded_hal_async::spi;
35 35
@@ -57,7 +57,7 @@ where
57 type Error = SpiDeviceError<BUS::Error, CS::Error>; 57 type Error = SpiDeviceError<BUS::Error, CS::Error>;
58} 58}
59 59
60impl<M, BUS, CS> spi::SpiDevice for SpiDevice<'_, M, BUS, CS> 60unsafe impl<M, BUS, CS> spi::SpiDevice for SpiDevice<'_, M, BUS, CS>
61where 61where
62 M: RawMutex + 'static, 62 M: RawMutex + 'static,
63 BUS: spi::SpiBusFlush + 'static, 63 BUS: spi::SpiBusFlush + 'static,
@@ -122,7 +122,7 @@ where
122 type Error = SpiDeviceError<BUS::Error, CS::Error>; 122 type Error = SpiDeviceError<BUS::Error, CS::Error>;
123} 123}
124 124
125impl<M, BUS, CS> spi::SpiDevice for SpiDeviceWithConfig<'_, M, BUS, CS> 125unsafe impl<M, BUS, CS> spi::SpiDevice for SpiDeviceWithConfig<'_, M, BUS, CS>
126where 126where
127 M: RawMutex + 'static, 127 M: RawMutex + 'static,
128 BUS: spi::SpiBusFlush + SetConfig + 'static, 128 BUS: spi::SpiBusFlush + SetConfig + 'static,