Remove the need for TxDma to be a DMA channel in the blocking UartTx impl
This commit is contained in:
parent
402def86ee
commit
1acc34bfaa
1 changed files with 0 additions and 2 deletions
|
@ -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)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue