Skip to content

Commit

Permalink
Fix mem2mem, fix S3 peripherals
Browse files Browse the repository at this point in the history
  • Loading branch information
bugadani committed Oct 7, 2024
1 parent 625b034 commit cae9ebb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions esp-hal/src/dma/gdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,18 +571,24 @@ crate::impl_dma_eligible! {
#[cfg(i2s1)]
I2S1 => I2s1,

#[cfg(esp32s3)]
LCD_CAM => LcdCam,

#[cfg(all(gdma, aes))]
AES => Aes,

#[cfg(all(gdma, sha))]
SHA => Sha,

#[cfg(any(esp32c3, esp32c6, esp32h2))]
#[cfg(any(esp32c3, esp32c6, esp32h2, esp32s3))]
ADC1 => Adc,

#[cfg(esp32c3)]
#[cfg(any(esp32c3, esp32s3))]
ADC2 => Adc,

#[cfg(esp32s3)]
RMT => Rmt,

#[cfg(parl_io)]
PARL_IO => ParlIo,

Expand Down
4 changes: 2 additions & 2 deletions hil-test/tests/dma_mem2mem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#![no_main]

use esp_hal::{
dma::{AnyDmaChannel, Channel, Dma, DmaError, DmaPriority, Mem2Mem},
dma::{AnyGdmaChannel, Channel, Dma, DmaError, DmaPriority, Mem2Mem},
dma_buffers,
dma_buffers_chunk_size,
dma_descriptors,
Expand All @@ -25,7 +25,7 @@ cfg_if::cfg_if! {
}

struct Context {
channel: Channel<'static, AnyDmaChannel, Blocking>,
channel: Channel<'static, AnyGdmaChannel, Blocking>,
dma_peripheral: DmaPeripheralType,
}

Expand Down

0 comments on commit cae9ebb

Please sign in to comment.