diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/blocking')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | 4 | ||||
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/blocking/spi.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs b/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs index dc634a209..49b50f8c1 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/i2c.rs | |||
| @@ -17,12 +17,12 @@ | |||
| 17 | 17 | ||
| 18 | use core::cell::RefCell; | 18 | use core::cell::RefCell; |
| 19 | 19 | ||
| 20 | use embassy_sync::blocking_mutex::raw::RawMutex; | ||
| 21 | use embassy_sync::blocking_mutex::Mutex; | 20 | use embassy_sync::blocking_mutex::Mutex; |
| 21 | use embassy_sync::blocking_mutex::raw::RawMutex; | ||
| 22 | use embedded_hal_1::i2c::{ErrorType, I2c, Operation}; | 22 | use embedded_hal_1::i2c::{ErrorType, I2c, Operation}; |
| 23 | 23 | ||
| 24 | use crate::shared_bus::I2cDeviceError; | ||
| 25 | use crate::SetConfig; | 24 | use crate::SetConfig; |
| 25 | use crate::shared_bus::I2cDeviceError; | ||
| 26 | 26 | ||
| 27 | /// I2C device on a shared bus. | 27 | /// I2C device on a shared bus. |
| 28 | pub struct I2cDevice<'a, M: RawMutex, BUS> { | 28 | pub struct I2cDevice<'a, M: RawMutex, BUS> { |
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs index ffe2aa1c6..48fe2f4c4 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs | |||
| @@ -19,13 +19,13 @@ | |||
| 19 | 19 | ||
| 20 | use core::cell::RefCell; | 20 | use core::cell::RefCell; |
| 21 | 21 | ||
| 22 | use embassy_sync::blocking_mutex::raw::RawMutex; | ||
| 23 | use embassy_sync::blocking_mutex::Mutex; | 22 | use embassy_sync::blocking_mutex::Mutex; |
| 23 | use embassy_sync::blocking_mutex::raw::RawMutex; | ||
| 24 | use embedded_hal_1::digital::OutputPin; | 24 | use embedded_hal_1::digital::OutputPin; |
| 25 | use embedded_hal_1::spi::{self, Operation, SpiBus}; | 25 | use embedded_hal_1::spi::{self, Operation, SpiBus}; |
| 26 | 26 | ||
| 27 | use crate::shared_bus::SpiDeviceError; | ||
| 28 | use crate::SetConfig; | 27 | use crate::SetConfig; |
| 28 | use crate::shared_bus::SpiDeviceError; | ||
| 29 | 29 | ||
| 30 | /// SPI device on a shared bus. | 30 | /// SPI device on a shared bus. |
| 31 | pub struct SpiDevice<'a, M: RawMutex, BUS, CS> { | 31 | pub struct SpiDevice<'a, M: RawMutex, BUS, CS> { |
