diff options
| author | xoviat <[email protected]> | 2021-03-02 00:32:23 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-03-02 00:32:23 +0100 |
| commit | 9626aee7dbe5fe454a014beee82383bc3f102a91 (patch) | |
| tree | 6d155c12dd0563056874ecc97d57c6ac521bcf5c /embassy-nrf/src/uarte.rs | |
| parent | 084b64053a562797fa3d88bb7dde9ddd8db792f1 (diff) | |
Move traits to separate crate.
Diffstat (limited to 'embassy-nrf/src/uarte.rs')
| -rw-r--r-- | embassy-nrf/src/uarte.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index 9d5ff81aa..0cc9790b2 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs | |||
| @@ -207,7 +207,7 @@ where | |||
| 207 | } | 207 | } |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | impl<T: Instance> embassy::uart::Uart for Uarte<T> { | 210 | impl<T: Instance> embassy::traits::uart::Uart for Uarte<T> { |
| 211 | type ReceiveFuture<'a> = ReceiveFuture<'a, T>; | 211 | type ReceiveFuture<'a> = ReceiveFuture<'a, T>; |
| 212 | type SendFuture<'a> = SendFuture<'a, T>; | 212 | type SendFuture<'a> = SendFuture<'a, T>; |
| 213 | 213 | ||
| @@ -287,7 +287,7 @@ impl<'a, T> Future for SendFuture<'a, T> | |||
| 287 | where | 287 | where |
| 288 | T: Instance, | 288 | T: Instance, |
| 289 | { | 289 | { |
| 290 | type Output = Result<(), embassy::uart::Error>; | 290 | type Output = Result<(), embassy::traits::uart::Error>; |
| 291 | 291 | ||
| 292 | fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { | 292 | fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { |
| 293 | let Self { uarte, buf } = unsafe { self.get_unchecked_mut() }; | 293 | let Self { uarte, buf } = unsafe { self.get_unchecked_mut() }; |
| @@ -355,7 +355,7 @@ impl<'a, T> Future for ReceiveFuture<'a, T> | |||
| 355 | where | 355 | where |
| 356 | T: Instance, | 356 | T: Instance, |
| 357 | { | 357 | { |
| 358 | type Output = Result<(), embassy::uart::Error>; | 358 | type Output = Result<(), embassy::traits::uart::Error>; |
| 359 | 359 | ||
| 360 | fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { | 360 | fn poll(self: core::pin::Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { |
| 361 | let Self { uarte, buf } = unsafe { self.get_unchecked_mut() }; | 361 | let Self { uarte, buf } = unsafe { self.get_unchecked_mut() }; |
