diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/blocking')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | 3 | ||||
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/blocking/spi.rs | 8 |
2 files changed, 5 insertions, 6 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs b/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs index a611e2d27..892000b26 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | |||
| @@ -20,8 +20,7 @@ use core::cell::RefCell; | |||
| 20 | 20 | ||
| 21 | use embassy_sync::blocking_mutex::raw::RawMutex; | 21 | use embassy_sync::blocking_mutex::raw::RawMutex; |
| 22 | use embassy_sync::blocking_mutex::Mutex; | 22 | use embassy_sync::blocking_mutex::Mutex; |
| 23 | use embedded_hal_1::i2c::blocking::{I2c, Operation}; | 23 | use embedded_hal_1::i2c::{ErrorType, I2c, Operation}; |
| 24 | use embedded_hal_1::i2c::ErrorType; | ||
| 25 | 24 | ||
| 26 | use crate::shared_bus::I2cDeviceError; | 25 | use crate::shared_bus::I2cDeviceError; |
| 27 | use crate::SetConfig; | 26 | use crate::SetConfig; |
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs index 23845d887..4a08dc36e 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs | |||
| @@ -22,9 +22,9 @@ use core::cell::RefCell; | |||
| 22 | 22 | ||
| 23 | use embassy_sync::blocking_mutex::raw::RawMutex; | 23 | use embassy_sync::blocking_mutex::raw::RawMutex; |
| 24 | use embassy_sync::blocking_mutex::Mutex; | 24 | use embassy_sync::blocking_mutex::Mutex; |
| 25 | use embedded_hal_1::digital::blocking::OutputPin; | 25 | use embedded_hal_1::digital::OutputPin; |
| 26 | use embedded_hal_1::spi; | 26 | use embedded_hal_1::spi; |
| 27 | use embedded_hal_1::spi::blocking::SpiBusFlush; | 27 | use embedded_hal_1::spi::SpiBusFlush; |
| 28 | 28 | ||
| 29 | use crate::shared_bus::SpiDeviceError; | 29 | use crate::shared_bus::SpiDeviceError; |
| 30 | use crate::SetConfig; | 30 | use crate::SetConfig; |
| @@ -50,7 +50,7 @@ where | |||
| 50 | type Error = SpiDeviceError<BUS::Error, CS::Error>; | 50 | type Error = SpiDeviceError<BUS::Error, CS::Error>; |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | impl<BUS, M, CS> embedded_hal_1::spi::blocking::SpiDevice for SpiDevice<'_, M, BUS, CS> | 53 | impl<BUS, M, CS> embedded_hal_1::spi::SpiDevice for SpiDevice<'_, M, BUS, CS> |
| 54 | where | 54 | where |
| 55 | M: RawMutex, | 55 | M: RawMutex, |
| 56 | BUS: SpiBusFlush, | 56 | BUS: SpiBusFlush, |
| @@ -146,7 +146,7 @@ where | |||
| 146 | type Error = SpiDeviceError<BUS::Error, CS::Error>; | 146 | type Error = SpiDeviceError<BUS::Error, CS::Error>; |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | impl<BUS, M, CS> embedded_hal_1::spi::blocking::SpiDevice for SpiDeviceWithConfig<'_, M, BUS, CS> | 149 | impl<BUS, M, CS> embedded_hal_1::spi::SpiDevice for SpiDeviceWithConfig<'_, M, BUS, CS> |
| 150 | where | 150 | where |
| 151 | M: RawMutex, | 151 | M: RawMutex, |
| 152 | BUS: SpiBusFlush + SetConfig, | 152 | BUS: SpiBusFlush + SetConfig, |
