From 11576b99d738d65b98443f40568db76a8db4239b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20Buga?= Date: Tue, 8 Oct 2024 08:45:14 +0200 Subject: [PATCH] Remove PeripheralDmaChannel --- esp-hal/src/dma/mod.rs | 7 ------- esp-hal/src/dma/pdma.rs | 8 -------- 2 files changed, 15 deletions(-) diff --git a/esp-hal/src/dma/mod.rs b/esp-hal/src/dma/mod.rs index 02c6257f756..af7f79667cd 100644 --- a/esp-hal/src/dma/mod.rs +++ b/esp-hal/src/dma/mod.rs @@ -1524,13 +1524,6 @@ pub trait DmaChannel: crate::private::Sealed { type Tx: TxRegisterAccess + InterruptAccess; } -/// 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; diff --git a/esp-hal/src/dma/pdma.rs b/esp-hal/src/dma/pdma.rs index 1a238dbea46..6399826e30e 100644 --- a/esp-hal/src/dma/pdma.rs +++ b/esp-hal/src/dma/pdma.rs @@ -329,10 +329,6 @@ macro_rules! ImplSpiChannel { type Tx = SpiDmaTxChannelImpl; } - impl PeripheralDmaChannel for [] { - type P = crate::peripherals::[]; - } - impl DmaChannelExt for [] { fn get_rx_interrupts() -> impl InterruptAccess { SpiDmaRxChannelImpl(Self {}) @@ -746,10 +742,6 @@ macro_rules! ImplI2sChannel { type Tx = I2sDmaTxChannelImpl; } - impl PeripheralDmaChannel for [] { - type P = crate::peripherals::[]; - } - impl DmaChannelExt for [] { fn get_rx_interrupts() -> impl InterruptAccess { I2sDmaRxChannelImpl(Self {})