1122: embassy-rp: Add split() to BufferedUart r=kalkyl a=kalkyl



Co-authored-by: kalkyl <henrik.alser@me.com>
This commit is contained in:
bors[bot]
2022-12-23 22:16:58 +00:00
committed by GitHub
3 changed files with 65 additions and 1 deletions

View File

@ -126,6 +126,13 @@ impl<'d, T: Instance> BufferedUart<'d, T> {
Self { phantom: PhantomData }
}
pub fn split(&mut self) -> (BufferedUartRx<'d, T>, BufferedUartTx<'d, T>) {
(
BufferedUartRx { phantom: PhantomData },
BufferedUartTx { phantom: PhantomData },
)
}
}
impl<'d, T: Instance> BufferedUartRx<'d, T> {