Remove the need for TxDma to be a DMA channel in the blocking UartTx impl

This commit is contained in:
Emilie Burgun 2024-03-26 17:43:22 +01:00
parent 402def86ee
commit 1acc34bfaa

View file

@ -1260,7 +1260,6 @@ where
impl<T, TxDma, RxDma> embedded_io::Write for Uart<'_, T, TxDma, RxDma> impl<T, TxDma, RxDma> embedded_io::Write for Uart<'_, T, TxDma, RxDma>
where where
T: BasicInstance, T: BasicInstance,
TxDma: crate::usart::TxDma<T>,
{ {
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> { fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
self.blocking_write(buf)?; self.blocking_write(buf)?;
@ -1275,7 +1274,6 @@ where
impl<T, TxDma> embedded_io::Write for UartTx<'_, T, TxDma> impl<T, TxDma> embedded_io::Write for UartTx<'_, T, TxDma>
where where
T: BasicInstance, T: BasicInstance,
TxDma: crate::usart::TxDma<T>,
{ {
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> { fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error> {
self.blocking_write(buf)?; self.blocking_write(buf)?;