Skip to content

Commit

Permalink
Update the priority enum and add missing channels for ESP32-S3
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Oct 28, 2022
1 parent c642c79 commit 4f18e2c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 4 additions & 0 deletions esp-hal-common/src/dma/gdma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ pub(crate) mod private {
impl_channel!(1);
#[cfg(not(esp32c2))]
impl_channel!(2);
#[cfg(esp32s3)]
impl_channel!(3);
#[cfg(esp32s3)]
impl_channel!(4);
}

/// GDMA Peripheral
Expand Down
26 changes: 10 additions & 16 deletions esp-hal-common/src/dma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,16 @@ pub enum DmaError {
#[cfg(any(esp32c2, esp32c3, esp32s3))]
#[derive(Clone, Copy)]
pub enum DmaPriority {
Priority0 = 0,
Priority1 = 1,
Priority2 = 2,
Priority3 = 3,
Priority4 = 4,
Priority5 = 5,
Priority6 = 6,
Priority7 = 7,
Priority8 = 8,
Priority9 = 9,
Priority10 = 10,
Priority11 = 11,
Priority12 = 12,
Priority13 = 13,
Priority14 = 14,
Priority15 = 15,
Priority0 = 0,
Priority1 = 1,
Priority2 = 2,
Priority3 = 3,
Priority4 = 4,
Priority5 = 5,
Priority6 = 6,
Priority7 = 7,
Priority8 = 8,
Priority9 = 9,
}

/// DMA Priorities
Expand Down

0 comments on commit 4f18e2c

Please sign in to comment.