Merge pull request #568 from reitermarkus/reexport-digital

Re-export `digital` error types in `embedded-hal-async`.
This commit is contained in:
Dario Nieuwenhuis
2024-01-19 10:42:09 +00:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@@ -15,9 +15,10 @@
//! .expect("failed to await input pin")
//! }
//! ```
pub use embedded_hal::digital::{Error, ErrorKind, ErrorType};
/// Asynchronously wait for GPIO pin state.
pub trait Wait: embedded_hal::digital::ErrorType {
pub trait Wait: ErrorType {
/// Wait until the pin is high. If it is already high, return immediately.
///
/// # Note for implementers

View File

@@ -16,9 +16,9 @@
//! Since 7-bit addressing is the mode of the majority of I2C devices,
//! `SevenBitAddress` has been set as default mode and thus can be omitted if desired.
pub use embedded_hal::i2c::Operation;
pub use embedded_hal::i2c::{
AddressMode, Error, ErrorKind, ErrorType, NoAcknowledgeSource, SevenBitAddress, TenBitAddress,
AddressMode, Error, ErrorKind, ErrorType, NoAcknowledgeSource, Operation, SevenBitAddress,
TenBitAddress,
};
/// Async I2c.