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 | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/asynch/spi.rs b/embassy-embedded-hal/src/shared_bus/asynch/spi.rs index f3795bb19..8034c90b5 100644 --- a/embassy-embedded-hal/src/shared_bus/asynch/spi.rs +++ b/embassy-embedded-hal/src/shared_bus/asynch/spi.rs | |||
| @@ -25,7 +25,6 @@ | |||
| 25 | //! let spi_dev2 = SpiBusDevice::new(spi_bus, cs_pin2); | 25 | //! let spi_dev2 = SpiBusDevice::new(spi_bus, cs_pin2); |
| 26 | //! let display2 = ST7735::new(spi_dev2, dc2, rst2, Default::default(), 160, 128); | 26 | //! let display2 = ST7735::new(spi_dev2, dc2, rst2, Default::default(), 160, 128); |
| 27 | //! ``` | 27 | //! ``` |
| 28 | use core::fmt::Debug; | ||
| 29 | use core::future::Future; | 28 | use core::future::Future; |
| 30 | 29 | ||
| 31 | use embassy::blocking_mutex::raw::RawMutex; | 30 | use embassy::blocking_mutex::raw::RawMutex; |
| @@ -56,19 +55,6 @@ where | |||
| 56 | type Error = SpiBusDeviceError<BUS::Error, CS::Error>; | 55 | type Error = SpiBusDeviceError<BUS::Error, CS::Error>; |
| 57 | } | 56 | } |
| 58 | 57 | ||
| 59 | impl<BUS, CS> spi::Error for SpiBusDeviceError<BUS, CS> | ||
| 60 | where | ||
| 61 | BUS: spi::Error + Debug, | ||
| 62 | CS: Debug, | ||
| 63 | { | ||
| 64 | fn kind(&self) -> spi::ErrorKind { | ||
| 65 | match self { | ||
| 66 | Self::Spi(e) => e.kind(), | ||
| 67 | Self::Cs(_) => spi::ErrorKind::Other, | ||
| 68 | } | ||
| 69 | } | ||
| 70 | } | ||
| 71 | |||
| 72 | impl<M, BUS, CS> spi::SpiDevice for SpiBusDevice<'_, M, BUS, CS> | 58 | impl<M, BUS, CS> spi::SpiDevice for SpiBusDevice<'_, M, BUS, CS> |
| 73 | where | 59 | where |
| 74 | M: RawMutex + 'static, | 60 | M: RawMutex + 'static, |
