diff options
| author | Raul Alimbekov <[email protected]> | 2025-12-16 09:05:22 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-16 09:05:22 +0300 |
| commit | c9a04b4b732b7a3b696eb8223664c1a7942b1875 (patch) | |
| tree | 6dbe5c02e66eed8d8762f13f95afd24f8db2b38c /embassy-embedded-hal/src/shared_bus | |
| parent | cde24a3ef1117653ba5ed4184102b33f745782fb (diff) | |
| parent | 5ae6e060ec1c90561719aabdc29d5b6e7b8b0a82 (diff) | |
Merge branch 'main' into main
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus')
4 files changed, 6 insertions, 6 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs b/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs index 48246270e..9c7d3ee71 100644 --- a/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs +++ b/embassy-embedded-hal/src/shared_bus/asynch/i2c.rs | |||
| @@ -26,8 +26,8 @@ use embassy_sync::blocking_mutex::raw::RawMutex; | |||
| 26 | use embassy_sync::mutex::Mutex; | 26 | use embassy_sync::mutex::Mutex; |
| 27 | use embedded_hal_async::i2c; | 27 | use embedded_hal_async::i2c; |
| 28 | 28 | ||
| 29 | use crate::shared_bus::I2cDeviceError; | ||
| 30 | use crate::SetConfig; | 29 | use crate::SetConfig; |
| 30 | use crate::shared_bus::I2cDeviceError; | ||
| 31 | 31 | ||
| 32 | /// I2C device on a shared bus. | 32 | /// I2C device on a shared bus. |
| 33 | pub struct I2cDevice<'a, M: RawMutex, BUS> { | 33 | pub struct I2cDevice<'a, M: RawMutex, BUS> { |
diff --git a/embassy-embedded-hal/src/shared_bus/asynch/spi.rs b/embassy-embedded-hal/src/shared_bus/asynch/spi.rs index 0faefbc1e..869a78164 100644 --- a/embassy-embedded-hal/src/shared_bus/asynch/spi.rs +++ b/embassy-embedded-hal/src/shared_bus/asynch/spi.rs | |||
| @@ -32,8 +32,8 @@ use embedded_hal_1::digital::OutputPin; | |||
| 32 | use embedded_hal_1::spi::Operation; | 32 | use embedded_hal_1::spi::Operation; |
| 33 | use embedded_hal_async::spi; | 33 | use embedded_hal_async::spi; |
| 34 | 34 | ||
| 35 | use crate::shared_bus::SpiDeviceError; | ||
| 36 | use crate::SetConfig; | 35 | use crate::SetConfig; |
| 36 | use crate::shared_bus::SpiDeviceError; | ||
| 37 | 37 | ||
| 38 | /// SPI device on a shared bus. | 38 | /// SPI device on a shared bus. |
| 39 | pub struct SpiDevice<'a, M: RawMutex, BUS, CS> { | 39 | pub struct SpiDevice<'a, M: RawMutex, BUS, CS> { |
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> { |
