Skip to content

Commit

Permalink
Remove PeripheralDmaChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 8, 2024
1 parent d4951d9 commit 11576b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions esp-hal/src/dma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1524,13 +1524,6 @@ pub trait DmaChannel: crate::private::Sealed {
type Tx: TxRegisterAccess + InterruptAccess<DmaTxInterrupt>;
}

/// A description of a DMA Channel that can be used with a peripheral.
#[cfg(pdma)]
pub trait PeripheralDmaChannel: DmaChannel {
/// A suitable peripheral for this DMA channel.
type P: PeripheralMarker;
}

#[doc(hidden)]
pub trait DmaChannelExt: DmaChannel {
fn get_rx_interrupts() -> impl InterruptAccess<DmaRxInterrupt>;
Expand Down
8 changes: 0 additions & 8 deletions esp-hal/src/dma/pdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ macro_rules! ImplSpiChannel {
type Tx = SpiDmaTxChannelImpl<Self>;
}

impl PeripheralDmaChannel for [<Spi $num DmaChannel>] {
type P = crate::peripherals::[<SPI $num>];
}

impl DmaChannelExt for [<Spi $num DmaChannel>] {
fn get_rx_interrupts() -> impl InterruptAccess<DmaRxInterrupt> {
SpiDmaRxChannelImpl(Self {})
Expand Down Expand Up @@ -746,10 +742,6 @@ macro_rules! ImplI2sChannel {
type Tx = I2sDmaTxChannelImpl<Self>;
}

impl PeripheralDmaChannel for [<I2s $num DmaChannel>] {
type P = crate::peripherals::[<I2S $num>];
}

impl DmaChannelExt for [<I2s $num DmaChannel>] {
fn get_rx_interrupts() -> impl InterruptAccess<DmaRxInterrupt> {
I2sDmaRxChannelImpl(Self {})
Expand Down

0 comments on commit 11576b9

Please sign in to comment.