diff options
| author | Alexander Walter <[email protected]> | 2024-12-14 15:41:31 +0100 |
|---|---|---|
| committer | Alexander Walter <[email protected]> | 2024-12-14 15:41:31 +0100 |
| commit | f5ead85377ab78d8f463df4f1e358770ff3eca5b (patch) | |
| tree | d18e3708bf7420fa28eeb948030240447cab08f6 /embassy-nrf/src | |
| parent | be1ed104e47e16eca1ec4e403db9ae02da5c9e27 (diff) | |
Just impl Write
Diffstat (limited to 'embassy-nrf/src')
| -rw-r--r-- | embassy-nrf/src/uarte.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/embassy-nrf/src/uarte.rs b/embassy-nrf/src/uarte.rs index 378325749..ebb4dd941 100644 --- a/embassy-nrf/src/uarte.rs +++ b/embassy-nrf/src/uarte.rs | |||
| @@ -1068,28 +1068,10 @@ mod _embedded_io { | |||
| 1068 | type Error = Error; | 1068 | type Error = Error; |
| 1069 | } | 1069 | } |
| 1070 | 1070 | ||
| 1071 | impl<'d, U: Instance> embedded_io_async::ErrorType for UarteRx<'d, U> { | ||
| 1072 | type Error = Error; | ||
| 1073 | } | ||
| 1074 | |||
| 1075 | impl<'d, U: Instance> embedded_io_async::ErrorType for UarteTx<'d, U> { | 1071 | impl<'d, U: Instance> embedded_io_async::ErrorType for UarteTx<'d, U> { |
| 1076 | type Error = Error; | 1072 | type Error = Error; |
| 1077 | } | 1073 | } |
| 1078 | 1074 | ||
| 1079 | impl<'d, U: Instance> embedded_io_async::Read for Uarte<'d, U> { | ||
| 1080 | async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { | ||
| 1081 | self.read(buf).await?; | ||
| 1082 | Ok(buf.len()) | ||
| 1083 | } | ||
| 1084 | } | ||
| 1085 | |||
| 1086 | impl<'d: 'd, U: Instance> embedded_io_async::Read for UarteRx<'d, U> { | ||
| 1087 | async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error> { | ||
| 1088 | self.read(buf).await?; | ||
| 1089 | Ok(buf.len()) | ||
| 1090 | } | ||
| 1091 | } | ||
| 1092 | |||
| 1093 | impl<'d, U: Instance> embedded_io_async::Write for Uarte<'d, U> { | 1075 | impl<'d, U: Instance> embedded_io_async::Write for Uarte<'d, U> { |
| 1094 | async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> { | 1076 | async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> { |
| 1095 | self.write(buf).await?; | 1077 | self.write(buf).await?; |
