diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-08-19 23:32:22 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-08-19 23:50:19 +0200 |
| commit | 2c992f701049a9c0e72048b134c26fdb26f2692a (patch) | |
| tree | 84aa74121769c9d9f3917cb493befd0fa14841cc /examples/stm32h7/src/bin/dac.rs | |
| parent | 446d6c275c2c3e0dcc57dd69c3c1b1e7f6c92488 (diff) | |
stm32: move dbgmcu stuff to toplevel config setting, defaulting to true.
Diffstat (limited to 'examples/stm32h7/src/bin/dac.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/dac.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/examples/stm32h7/src/bin/dac.rs b/examples/stm32h7/src/bin/dac.rs index 8816f63c2..e4c3a7312 100644 --- a/examples/stm32h7/src/bin/dac.rs +++ b/examples/stm32h7/src/bin/dac.rs | |||
| @@ -19,10 +19,6 @@ fn main() -> ! { | |||
| 19 | 19 | ||
| 20 | let p = embassy_stm32::init(config()); | 20 | let p = embassy_stm32::init(config()); |
| 21 | 21 | ||
| 22 | unsafe { | ||
| 23 | Dbgmcu::enable_all(); | ||
| 24 | } | ||
| 25 | |||
| 26 | let mut dac = Dac::new(p.DAC1, p.PA4, NoPin); | 22 | let mut dac = Dac::new(p.DAC1, p.PA4, NoPin); |
| 27 | 23 | ||
| 28 | loop { | 24 | loop { |
| @@ -33,7 +29,6 @@ fn main() -> ! { | |||
| 33 | } | 29 | } |
| 34 | } | 30 | } |
| 35 | 31 | ||
| 36 | use embassy_stm32::dbgmcu::Dbgmcu; | ||
| 37 | use micromath::F32Ext; | 32 | use micromath::F32Ext; |
| 38 | 33 | ||
| 39 | fn to_sine_wave(v: u8) -> u8 { | 34 | fn to_sine_wave(v: u8) -> u8 { |
