Skip to content

Commit 76c20eb

Browse files
committed
Fixed some bugs
1 parent 1a2a01c commit 76c20eb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ paste = "^1.0.4" # Token pasting, to make macros easier
6969

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

7475

src/dma.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,8 @@ pub fn mux(periph: DmaPeriph, channel: DmaChannel, input: DmaInput) {
19721972
unsafe {
19731973
let mux = unsafe { &(*DMAMUX::ptr()) };
19741974

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

0 commit comments

Comments
 (0)