Skip to content

Commit

Permalink
Offer DMA channel 3 and 4 on ESP32-S3
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernQ authored and jessebraham committed Oct 31, 2022
1 parent 9152792 commit ad1970c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions esp-hal-common/src/dma/gdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -402,6 +406,10 @@ impl Gdma {
channel1: ChannelCreator1 {},
#[cfg(not(esp32c2))]
channel2: ChannelCreator2 {},
#[cfg(esp32s3)]
channel3: ChannelCreator3 {},
#[cfg(esp32s3)]
channel4: ChannelCreator4 {},
}
}
}

0 comments on commit ad1970c

Please sign in to comment.