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/spi.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/spi.rs')
| -rw-r--r-- | examples/stm32h7/src/bin/spi.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/stm32h7/src/bin/spi.rs b/examples/stm32h7/src/bin/spi.rs index 026960a14..5175538df 100644 --- a/examples/stm32h7/src/bin/spi.rs +++ b/examples/stm32h7/src/bin/spi.rs | |||
| @@ -12,9 +12,7 @@ use embassy::executor::Executor; | |||
| 12 | use embassy::time::Clock; | 12 | use embassy::time::Clock; |
| 13 | use embassy::util::Forever; | 13 | use embassy::util::Forever; |
| 14 | use embassy_stm32::dma::NoDma; | 14 | use embassy_stm32::dma::NoDma; |
| 15 | use embassy_stm32::rcc; | ||
| 16 | use embassy_stm32::spi; | 15 | use embassy_stm32::spi; |
| 17 | use embassy_stm32::Config; | ||
| 18 | use embedded_hal::blocking::spi::Transfer; | 16 | use embedded_hal::blocking::spi::Transfer; |
| 19 | use example_common::*; | 17 | use example_common::*; |
| 20 | 18 | ||
| @@ -58,9 +56,7 @@ fn main() -> ! { | |||
| 58 | Dbgmcu::enable_all(); | 56 | Dbgmcu::enable_all(); |
| 59 | } | 57 | } |
| 60 | 58 | ||
| 61 | let p = embassy_stm32::init( | 59 | let p = embassy_stm32::init(config()); |
| 62 | Config::default().rcc(rcc::Config::default().sys_ck(400.mhz()).pll1_q(100.mhz())), | ||
| 63 | ); | ||
| 64 | 60 | ||
| 65 | let spi = spi::Spi::new( | 61 | let spi = spi::Spi::new( |
| 66 | p.SPI3, | 62 | p.SPI3, |
