diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/usart_dma.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/examples/stm32h7/src/bin/usart_dma.rs b/examples/stm32h7/src/bin/usart_dma.rs index 097466cea..907356500 100644 --- a/examples/stm32h7/src/bin/usart_dma.rs +++ b/examples/stm32h7/src/bin/usart_dma.rs | |||
| @@ -71,22 +71,10 @@ fn main() -> ! { | |||
| 71 | .pll1_q_ck(48.mhz()) | 71 | .pll1_q_ck(48.mhz()) |
| 72 | .freeze(pwrcfg, &pp.SYSCFG); | 72 | .freeze(pwrcfg, &pp.SYSCFG); |
| 73 | 73 | ||
| 74 | let pp = unsafe { pac::Peripherals::steal() }; | ||
| 75 | |||
| 76 | unsafe { | 74 | unsafe { |
| 77 | Dbgmcu::enable_all(); | 75 | Dbgmcu::enable_all(); |
| 78 | } | 76 | } |
| 79 | 77 | ||
| 80 | pp.RCC.ahb4enr.modify(|_, w| { | ||
| 81 | w.gpioaen().set_bit(); | ||
| 82 | w.gpioben().set_bit(); | ||
| 83 | w.gpiocen().set_bit(); | ||
| 84 | w.gpioden().set_bit(); | ||
| 85 | w.gpioeen().set_bit(); | ||
| 86 | w.gpiofen().set_bit(); | ||
| 87 | w | ||
| 88 | }); | ||
| 89 | |||
| 90 | unsafe { embassy::time::set_clock(&ZeroClock) }; | 78 | unsafe { embassy::time::set_clock(&ZeroClock) }; |
| 91 | 79 | ||
| 92 | let executor = EXECUTOR.put(Executor::new()); | 80 | let executor = EXECUTOR.put(Executor::new()); |
