Skip to content
Snippets Groups Projects
Commit 6ca893e0 authored by Jorge Aparicio's avatar Jorge Aparicio
Browse files

update the embedded-hal dependency

parent 2b7d5c56
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ version = "0.2.2" ...@@ -18,7 +18,7 @@ version = "0.2.2"
[dependencies.embedded-hal] [dependencies.embedded-hal]
git = "https://github.com/japaric/embedded-hal" git = "https://github.com/japaric/embedded-hal"
rev = "5295697669f5b48a900aa325b8ebb4d4e8d4b236" rev = "7d904f515d15fd5fe7ea34e18820ea83e2651fa2"
[dependencies.nb] [dependencies.nb]
git = "https://github.com/japaric/nb" git = "https://github.com/japaric/nb"
......
...@@ -337,7 +337,7 @@ where ...@@ -337,7 +337,7 @@ where
} }
} }
impl<'a, U> hal::Serial for Serial<'a, U> impl<'a, U> hal::serial::Read<u8> for Serial<'a, U>
where where
U: Any + Usart, U: Any + Usart,
{ {
...@@ -363,6 +363,13 @@ where ...@@ -363,6 +363,13 @@ where
Err(nb::Error::WouldBlock) Err(nb::Error::WouldBlock)
} }
} }
}
impl<'a, U> hal::serial::Write<u8> for Serial<'a, U>
where
U: Any + Usart,
{
type Error = Error;
fn write(&self, byte: u8) -> Result<()> { fn write(&self, byte: u8) -> Result<()> {
let usart1 = self.0; let usart1 = self.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment