Switch to crates.io embedded-hal, embedded-hal-async.

This temporarily removes support for the async UART trait, since it's
not yet in embedded-hal-async.
This commit is contained in:
Dario Nieuwenhuis
2022-04-22 19:58:24 +02:00
parent ea0a701ebd
commit 3251a21fb7
15 changed files with 31 additions and 55 deletions

View File

@ -161,6 +161,7 @@ where
type Error = E;
}
#[cfg(feature = "_todo_embedded_hal_serial")]
impl<T, E> embedded_hal_async::serial::Read for BlockingAsync<T>
where
T: serial::Read<u8, Error = E>,
@ -185,6 +186,7 @@ where
}
}
#[cfg(feature = "_todo_embedded_hal_serial")]
impl<T, E> embedded_hal_async::serial::Write for BlockingAsync<T>
where
T: blocking::serial::Write<u8, Error = E> + serial::Read<u8, Error = E>,