Skip to content

Commit 2bc77e4

Browse files
committed
Fix RCC in DMA enable
1 parent edd7229 commit 2bc77e4

File tree

1 file changed

+1
-1
lines changed
  • examples/stm32f7disco-qspi-flash

1 file changed

+1
-1
lines changed

examples/stm32f7disco-qspi-flash/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn main() -> ! {
4242
// Setup DMA
4343
let dma = DMA::new(pac_periph.DMA2);
4444
let stream = dma.streams.stream7;
45-
let dma = dma.handle.enable(&mut rcc);
45+
let dma = dma.handle.enable(&mut rcc.ahb1);
4646

4747
// Ramp up clocks to 216 MHz
4848
rcc.cfgr.hse(hse_cfg).sysclk(216.mhz()).freeze();

0 commit comments

Comments
 (0)