diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/mod.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/mod.rs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/mod.rs b/embassy-embedded-hal/src/shared_bus/mod.rs index cd748cac8..2309a6c35 100644 --- a/embassy-embedded-hal/src/shared_bus/mod.rs +++ b/embassy-embedded-hal/src/shared_bus/mod.rs | |||
| @@ -1,6 +1,16 @@ | |||
| 1 | //! Shared bus implementations | 1 | //! Shared bus implementations |
| 2 | #[cfg(feature = "nightly")] | ||
| 3 | pub mod asynch; | ||
| 4 | |||
| 2 | pub mod blocking; | 5 | pub mod blocking; |
| 3 | /// Shared i2c bus implementation for embedded-hal-async | 6 | |
| 4 | pub mod i2c; | 7 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] |
| 5 | /// Shared SPI bus implementation for embedded-hal-async | 8 | pub enum I2cBusDeviceError<BUS> { |
| 6 | pub mod spi; | 9 | I2c(BUS), |
| 10 | } | ||
| 11 | |||
| 12 | #[derive(Copy, Clone, Eq, PartialEq, Debug)] | ||
| 13 | pub enum SpiBusDeviceError<BUS, CS> { | ||
| 14 | Spi(BUS), | ||
| 15 | Cs(CS), | ||
| 16 | } | ||
