diff options
Diffstat (limited to 'embassy-rp/src')
| -rw-r--r-- | embassy-rp/src/pio_programs/uart.rs | 4 | ||||
| -rw-r--r-- | embassy-rp/src/uart/mod.rs | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/embassy-rp/src/pio_programs/uart.rs b/embassy-rp/src/pio_programs/uart.rs index d59596dd1..a16d89a75 100644 --- a/embassy-rp/src/pio_programs/uart.rs +++ b/embassy-rp/src/pio_programs/uart.rs | |||
| @@ -90,6 +90,10 @@ impl<PIO: Instance, const SM: usize> Write for PioUartTx<'_, PIO, SM> { | |||
| 90 | } | 90 | } |
| 91 | Ok(buf.len()) | 91 | Ok(buf.len()) |
| 92 | } | 92 | } |
| 93 | |||
| 94 | async fn flush(&mut self) -> Result<(), Infallible> { | ||
| 95 | Ok(()) | ||
| 96 | } | ||
| 93 | } | 97 | } |
| 94 | 98 | ||
| 95 | /// This struct represents a Uart Rx program loaded into pio instruction memory. | 99 | /// This struct represents a Uart Rx program loaded into pio instruction memory. |
diff --git a/embassy-rp/src/uart/mod.rs b/embassy-rp/src/uart/mod.rs index b7b569dd5..f53b2f88e 100644 --- a/embassy-rp/src/uart/mod.rs +++ b/embassy-rp/src/uart/mod.rs | |||
| @@ -118,6 +118,14 @@ pub enum Error { | |||
| 118 | Framing, | 118 | Framing, |
| 119 | } | 119 | } |
| 120 | 120 | ||
| 121 | impl core::fmt::Display for Error { | ||
| 122 | fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result { | ||
| 123 | core::fmt::Debug::fmt(self, f) | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | impl core::error::Error for Error {} | ||
| 128 | |||
| 121 | /// Read To Break error | 129 | /// Read To Break error |
| 122 | #[derive(Debug, Eq, PartialEq, Copy, Clone)] | 130 | #[derive(Debug, Eq, PartialEq, Copy, Clone)] |
| 123 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | 131 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] |
