Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ committed May 10, 2024
1 parent e74750e commit cc6906f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions esp-hal/src/parl_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ use crate::{
ChannelTypes,
DmaError,
DmaPeripheral,
DmaTransferRxImpl,
DmaTransferTxImpl,
DmaTransferRx,
DmaTransferTx,
ParlIoPeripheral,
RxPrivate,
TxPrivate,
Expand Down Expand Up @@ -1421,7 +1421,7 @@ where
pub fn write_dma<'t, TXBUF>(
&'t mut self,
words: &'t TXBUF,
) -> Result<DmaTransferTxImpl<Self>, Error>
) -> Result<DmaTransferTx<Self>, Error>
where
TXBUF: ReadBuffer<Word = u8>,
{
Expand All @@ -1433,7 +1433,7 @@ where

self.start_write_bytes_dma(ptr, len)?;

Ok(DmaTransferTxImpl::new(self))
Ok(DmaTransferTx::new(self))
}

fn start_write_bytes_dma(&mut self, ptr: *const u8, len: usize) -> Result<(), Error> {
Expand Down Expand Up @@ -1516,7 +1516,7 @@ where
pub fn read_dma<'t, RXBUF>(
&'t mut self,
words: &'t mut RXBUF,
) -> Result<DmaTransferRxImpl<Self>, Error>
) -> Result<DmaTransferRx<Self>, Error>
where
RXBUF: WriteBuffer<Word = u8>,
{
Expand All @@ -1528,7 +1528,7 @@ where

Self::start_receive_bytes_dma(&mut self.rx_channel, ptr, len)?;

Ok(DmaTransferRxImpl::new(self))
Ok(DmaTransferRx::new(self))
}

fn start_receive_bytes_dma(
Expand Down

0 comments on commit cc6906f

Please sign in to comment.