From ad1970c6b72031abdb8958aeb6a23fe8552de9d1 Mon Sep 17 00:00:00 2001 From: bjoernQ Date: Mon, 31 Oct 2022 14:25:46 +0100 Subject: [PATCH] Offer DMA channel 3 and 4 on ESP32-S3 --- esp-hal-common/src/dma/gdma.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/esp-hal-common/src/dma/gdma.rs b/esp-hal-common/src/dma/gdma.rs index 43d20dcf81c..6806cae3472 100644 --- a/esp-hal-common/src/dma/gdma.rs +++ b/esp-hal-common/src/dma/gdma.rs @@ -382,6 +382,10 @@ pub struct Gdma { pub channel1: ChannelCreator1, #[cfg(not(esp32c2))] pub channel2: ChannelCreator2, + #[cfg(esp32s3)] + pub channel3: ChannelCreator3, + #[cfg(esp32s3)] + pub channel4: ChannelCreator4, } impl Gdma { @@ -402,6 +406,10 @@ impl Gdma { channel1: ChannelCreator1 {}, #[cfg(not(esp32c2))] channel2: ChannelCreator2 {}, + #[cfg(esp32s3)] + channel3: ChannelCreator3 {}, + #[cfg(esp32s3)] + channel4: ChannelCreator4 {}, } } }