diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-08-04 21:32:39 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-04 21:32:39 +0200 |
| commit | cfa1f61154193da9a12420cb9cf300b2f3d736b2 (patch) | |
| tree | 3ef781c75da9e94483e6cbdf994bf12b2dd89bb6 /examples/stm32h7/src/bin/dac.rs | |
| parent | cee111c8650ad15d47a1495a33370f5ec12f83ed (diff) | |
| parent | 9726f77ce13e4c31fbe9aaa7e259aa9c31b60c63 (diff) | |
Merge pull request #344 from bobmcwhirter/remove_builders
Remove builders from Config(s) and examples.
Diffstat (limited to 'examples/stm32h7/src/bin/dac.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/dac.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/stm32h7/src/bin/dac.rs b/examples/stm32h7/src/bin/dac.rs index fcbb0c236..8816f63c2 100644 --- a/examples/stm32h7/src/bin/dac.rs +++ b/examples/stm32h7/src/bin/dac.rs | |||
| @@ -12,17 +12,12 @@ use example_common::*; | |||
| 12 | 12 | ||
| 13 | use cortex_m_rt::entry; | 13 | use cortex_m_rt::entry; |
| 14 | use embassy_stm32::dac::{Channel, Dac, Value}; | 14 | use embassy_stm32::dac::{Channel, Dac, Value}; |
| 15 | use embassy_stm32::rcc; | ||
| 16 | use embassy_stm32::time::U32Ext; | ||
| 17 | use embassy_stm32::Config; | ||
| 18 | 15 | ||
| 19 | #[entry] | 16 | #[entry] |
| 20 | fn main() -> ! { | 17 | fn main() -> ! { |
| 21 | info!("Hello World, dude!"); | 18 | info!("Hello World, dude!"); |
| 22 | 19 | ||
| 23 | let p = embassy_stm32::init( | 20 | let p = embassy_stm32::init(config()); |
| 24 | Config::default().rcc(rcc::Config::default().sys_ck(400.mhz()).pll1_q(100.mhz())), | ||
| 25 | ); | ||
| 26 | 21 | ||
| 27 | unsafe { | 22 | unsafe { |
| 28 | Dbgmcu::enable_all(); | 23 | Dbgmcu::enable_all(); |
