From 0787c8f8f553a5677a75e3d33904c84f879fa421 Mon Sep 17 00:00:00 2001 From: Bob McWhirter Date: Wed, 4 Aug 2021 11:35:18 -0400 Subject: [PATCH] Formatting. --- examples/stm32h7/src/bin/dac.rs | 6 +++--- examples/stm32h7/src/bin/eth.rs | 4 ++-- examples/stm32h7/src/bin/spi.rs | 6 +++--- examples/stm32h7/src/bin/spi_dma.rs | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/stm32h7/src/bin/dac.rs b/examples/stm32h7/src/bin/dac.rs index fb2feb7b..47e893aa 100644 --- a/examples/stm32h7/src/bin/dac.rs +++ b/examples/stm32h7/src/bin/dac.rs @@ -22,7 +22,7 @@ use embassy_stm32::Config; fn main() -> ! { info!("Hello World, dude!"); - let p = embassy_stm32::init( config() ); + let p = embassy_stm32::init(config()); unsafe { Dbgmcu::enable_all(); @@ -62,6 +62,6 @@ fn config() -> Config { fn rcc_config() -> rcc::Config { let mut config = rcc::Config::default(); config.sys_ck = Some(400.mhz().into()); - config.pll1.q_ck = Some( 100.mhz().into() ); + config.pll1.q_ck = Some(100.mhz().into()); config -} \ No newline at end of file +} diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs index 233c5e4c..49359dbd 100644 --- a/examples/stm32h7/src/bin/eth.rs +++ b/examples/stm32h7/src/bin/eth.rs @@ -163,6 +163,6 @@ fn config() -> Config { fn rcc_config() -> rcc::Config { let mut config = rcc::Config::default(); config.sys_ck = Some(400.mhz().into()); - config.pll1.q_ck = Some( 100.mhz().into() ); + config.pll1.q_ck = Some(100.mhz().into()); config -} \ No newline at end of file +} diff --git a/examples/stm32h7/src/bin/spi.rs b/examples/stm32h7/src/bin/spi.rs index b2cf1961..e72211e8 100644 --- a/examples/stm32h7/src/bin/spi.rs +++ b/examples/stm32h7/src/bin/spi.rs @@ -60,7 +60,7 @@ fn main() -> ! { Dbgmcu::enable_all(); } - let p = embassy_stm32::init( config() ); + let p = embassy_stm32::init(config()); let spi = spi::Spi::new( p.SPI3, @@ -90,6 +90,6 @@ fn config() -> Config { fn rcc_config() -> rcc::Config { let mut config = rcc::Config::default(); config.sys_ck = Some(400.mhz().into()); - config.pll1.q_ck = Some( 100.mhz().into() ); + config.pll1.q_ck = Some(100.mhz().into()); config -} \ No newline at end of file +} diff --git a/examples/stm32h7/src/bin/spi_dma.rs b/examples/stm32h7/src/bin/spi_dma.rs index 0ce4212b..aa120c97 100644 --- a/examples/stm32h7/src/bin/spi_dma.rs +++ b/examples/stm32h7/src/bin/spi_dma.rs @@ -56,7 +56,7 @@ fn main() -> ! { Dbgmcu::enable_all(); } - let p = embassy_stm32::init( config() ); + let p = embassy_stm32::init(config()); let spi = spi::Spi::new( p.SPI3, @@ -86,6 +86,6 @@ fn config() -> Config { fn rcc_config() -> rcc::Config { let mut config = rcc::Config::default(); config.sys_ck = Some(400.mhz().into()); - config.pll1.q_ck = Some( 100.mhz().into() ); + config.pll1.q_ck = Some(100.mhz().into()); config }