diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/asynch/spi.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/asynch/spi.rs | 6 |
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 | ||
| 30 | use embassy_sync::blocking_mutex::raw::RawMutex; | 30 | use embassy_sync::blocking_mutex::raw::RawMutex; |
| 31 | use embassy_sync::mutex::Mutex; | 31 | use embassy_sync::mutex::Mutex; |
| 32 | use embedded_hal_1::digital::blocking::OutputPin; | 32 | use embedded_hal_1::digital::OutputPin; |
| 33 | use embedded_hal_1::spi::ErrorType; | 33 | use embedded_hal_1::spi::ErrorType; |
| 34 | use embedded_hal_async::spi; | 34 | use 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 | ||
| 60 | impl<M, BUS, CS> spi::SpiDevice for SpiDevice<'_, M, BUS, CS> | 60 | unsafe impl<M, BUS, CS> spi::SpiDevice for SpiDevice<'_, M, BUS, CS> |
| 61 | where | 61 | where |
| 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 | ||
| 125 | impl<M, BUS, CS> spi::SpiDevice for SpiDeviceWithConfig<'_, M, BUS, CS> | 125 | unsafe impl<M, BUS, CS> spi::SpiDevice for SpiDeviceWithConfig<'_, M, BUS, CS> |
| 126 | where | 126 | where |
| 127 | M: RawMutex + 'static, | 127 | M: RawMutex + 'static, |
| 128 | BUS: spi::SpiBusFlush + SetConfig + 'static, | 128 | BUS: spi::SpiBusFlush + SetConfig + 'static, |
