Skip to content

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Dec 19, 2024
1 parent 1a2a01c commit 76c20eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ paste = "^1.0.4" # Token pasting, to make macros easier

[package.metadata.docs.rs]
features = ["h735", "h7rt", "usbotg_hs", "can_fd_h", "embedded_hal"]
#features = ["g641", "g4rt", "usb", "can_fd_g", "embedded_hal"]
targets = ["thumbv7em-none-eabihf"]


Expand Down
2 changes: 2 additions & 0 deletions src/dma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,8 @@ pub fn mux(periph: DmaPeriph, channel: DmaChannel, input: DmaInput) {
unsafe {
let mux = unsafe { &(*DMAMUX::ptr()) };

#[cfg(feature = "g4")]
let rcc = unsafe { &(*RCC::ptr()) };
#[cfg(feature = "g4")]
rcc.ahb1enr.modify(|_, w| w.dmamuxen().set_bit());

Expand Down

0 comments on commit 76c20eb

Please sign in to comment.