Skip to content

Commit 11576b9

Browse files
committed
Remove PeripheralDmaChannel
1 parent d4951d9 commit 11576b9

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

esp-hal/src/dma/mod.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1524,13 +1524,6 @@ pub trait DmaChannel: crate::private::Sealed {
15241524
type Tx: TxRegisterAccess + InterruptAccess<DmaTxInterrupt>;
15251525
}
15261526

1527-
/// A description of a DMA Channel that can be used with a peripheral.
1528-
#[cfg(pdma)]
1529-
pub trait PeripheralDmaChannel: DmaChannel {
1530-
/// A suitable peripheral for this DMA channel.
1531-
type P: PeripheralMarker;
1532-
}
1533-
15341527
#[doc(hidden)]
15351528
pub trait DmaChannelExt: DmaChannel {
15361529
fn get_rx_interrupts() -> impl InterruptAccess<DmaRxInterrupt>;

esp-hal/src/dma/pdma.rs

-8
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,6 @@ macro_rules! ImplSpiChannel {
329329
type Tx = SpiDmaTxChannelImpl<Self>;
330330
}
331331

332-
impl PeripheralDmaChannel for [<Spi $num DmaChannel>] {
333-
type P = crate::peripherals::[<SPI $num>];
334-
}
335-
336332
impl DmaChannelExt for [<Spi $num DmaChannel>] {
337333
fn get_rx_interrupts() -> impl InterruptAccess<DmaRxInterrupt> {
338334
SpiDmaRxChannelImpl(Self {})
@@ -746,10 +742,6 @@ macro_rules! ImplI2sChannel {
746742
type Tx = I2sDmaTxChannelImpl<Self>;
747743
}
748744

749-
impl PeripheralDmaChannel for [<I2s $num DmaChannel>] {
750-
type P = crate::peripherals::[<I2S $num>];
751-
}
752-
753745
impl DmaChannelExt for [<I2s $num DmaChannel>] {
754746
fn get_rx_interrupts() -> impl InterruptAccess<DmaRxInterrupt> {
755747
I2sDmaRxChannelImpl(Self {})

0 commit comments

Comments
 (0)