Skip to content

Commit

Permalink
Auto enable Mux1 on the mux fn
Browse files Browse the repository at this point in the history
  • Loading branch information
David O'Connor committed Sep 24, 2024
1 parent 6174d6a commit 46099e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1965,6 +1965,9 @@ pub fn mux(periph: DmaPeriph, channel: DmaChannel, input: DmaInput) {
unsafe {
let mux = unsafe { &(*DMAMUX::ptr()) };

#[cfg(feature = "g4")]
enable_mux1();

match periph {
DmaPeriph::Dma1 => {
#[cfg(not(feature = "h7"))]
Expand Down

0 comments on commit 46099e1

Please sign in to comment.