Add asynch mod to shared_bus

This commit is contained in:
Henrik Alsér
2022-07-10 00:05:57 +02:00
parent 20f56b856f
commit ef24faf2df
7 changed files with 44 additions and 44 deletions

View File

@ -1,6 +1,16 @@
//! Shared bus implementations
#[cfg(feature = "nightly")]
pub mod asynch;
pub mod blocking;
/// Shared i2c bus implementation for embedded-hal-async
pub mod i2c;
/// Shared SPI bus implementation for embedded-hal-async
pub mod spi;
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum I2cBusDeviceError<BUS> {
I2c(BUS),
}
#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub enum SpiBusDeviceError<BUS, CS> {
Spi(BUS),
Cs(CS),
}