We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abbaef commit bac7b62Copy full SHA for bac7b62
examples/button.rs
@@ -52,17 +52,9 @@ fn main() -> ! {
52
53
let mut dp = stm32::Peripherals::take().expect("cannot take peripherals");
54
55
- // Workaround for RTT when using wfi instruction
56
- // Enable the debug sleep bits in DBGMCU,
57
- // then enable DMA peripheral clock in AHB1ENR
58
- dp.DBGMCU.cr().modify(|_, w| {
59
- w.dbg_sleep().set_bit();
60
- w.dbg_stop().set_bit();
61
- w.dbg_standby().set_bit()
62
- });
63
-
64
let mut rcc = dp.RCC.constrain();
65
+ // Workaround for RTT when using wfi instruction
66
// Enable an AHB peripheral clock for debug probe with wfi
67
rcc.ahb1enr().modify(|_, w| w.dma1en().set_bit());
68
0 commit comments