mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-02-16 17:02:30 +00:00
Remove the need for TxDma to be a DMA channel in the blocking UartTx impl
This commit is contained in:
parent
402def86ee
commit
1acc34bfaa
@ -1260,7 +1260,6 @@ where
|
||||
impl<T, TxDma, RxDma> embedded_io::Write for Uart<'_, T, TxDma, RxDma>
|
||||
where
|
||||
T: BasicInstance,
|
||||
TxDma: crate::usart::TxDma<T>,
|
||||
{
|
||||
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
|
||||
self.blocking_write(buf)?;
|
||||
@ -1275,7 +1274,6 @@ where
|
||||
impl<T, TxDma> embedded_io::Write for UartTx<'_, T, TxDma>
|
||||
where
|
||||
T: BasicInstance,
|
||||
TxDma: crate::usart::TxDma<T>,
|
||||
{
|
||||
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
|
||||
self.blocking_write(buf)?;
|
||||
|
Loading…
Reference in New Issue
Block a user