aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-rp/src/uart/mod.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/embassy-rp/src/uart/mod.rs b/embassy-rp/src/uart/mod.rs
index dedc390f0..f4a93f637 100644
--- a/embassy-rp/src/uart/mod.rs
+++ b/embassy-rp/src/uart/mod.rs
@@ -229,6 +229,16 @@ impl<'d, T: Instance, M: Mode> UartRx<'d, T, M> {
229} 229}
230 230
231impl<'d, T: Instance> UartRx<'d, T, Blocking> { 231impl<'d, T: Instance> UartRx<'d, T, Blocking> {
232 pub fn new_blocking(
233 _uart: impl Peripheral<P = T> + 'd,
234 rx: impl Peripheral<P = impl RxPin<T>> + 'd,
235 config: Config,
236 ) -> Self {
237 into_ref!(rx);
238 Uart::<T, Blocking>::init(None, Some(rx.map_into()), None, None, config);
239 Self::new_inner(None)
240 }
241
232 #[cfg(feature = "nightly")] 242 #[cfg(feature = "nightly")]
233 pub fn into_buffered( 243 pub fn into_buffered(
234 self, 244 self,