mirror of
https://github.com/rust-embedded/embedded-hal.git
synced 2026-03-19 05:40:32 +00:00
Merge pull request #568 from reitermarkus/reexport-digital
Re-export `digital` error types in `embedded-hal-async`.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user