diff options
| author | Bob McWhirter <[email protected]> | 2021-08-04 11:35:18 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-08-04 11:35:18 -0400 |
| commit | 0787c8f8f553a5677a75e3d33904c84f879fa421 (patch) | |
| tree | 490199f77704a57d716c13c1e0205782d5cc8751 /examples | |
| parent | 03f15d3a6093fe169791c5b132688bb115e8046f (diff) | |
Formatting.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/dac.rs | 6 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/eth.rs | 4 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/spi.rs | 6 | ||||
| -rw-r--r-- | 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 fb2feb7bb..47e893aae 100644 --- a/examples/stm32h7/src/bin/dac.rs +++ b/examples/stm32h7/src/bin/dac.rs | |||
| @@ -22,7 +22,7 @@ use embassy_stm32::Config; | |||
| 22 | fn main() -> ! { | 22 | fn main() -> ! { |
| 23 | info!("Hello World, dude!"); | 23 | info!("Hello World, dude!"); |
| 24 | 24 | ||
| 25 | let p = embassy_stm32::init( config() ); | 25 | let p = embassy_stm32::init(config()); |
| 26 | 26 | ||
| 27 | unsafe { | 27 | unsafe { |
| 28 | Dbgmcu::enable_all(); | 28 | Dbgmcu::enable_all(); |
| @@ -62,6 +62,6 @@ fn config() -> Config { | |||
| 62 | fn rcc_config() -> rcc::Config { | 62 | fn rcc_config() -> rcc::Config { |
| 63 | let mut config = rcc::Config::default(); | 63 | let mut config = rcc::Config::default(); |
| 64 | config.sys_ck = Some(400.mhz().into()); | 64 | config.sys_ck = Some(400.mhz().into()); |
| 65 | config.pll1.q_ck = Some( 100.mhz().into() ); | 65 | config.pll1.q_ck = Some(100.mhz().into()); |
| 66 | config | 66 | config |
| 67 | } \ No newline at end of file | 67 | } |
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs index 233c5e4c3..49359dbd1 100644 --- a/examples/stm32h7/src/bin/eth.rs +++ b/examples/stm32h7/src/bin/eth.rs | |||
| @@ -163,6 +163,6 @@ fn config() -> Config { | |||
| 163 | fn rcc_config() -> rcc::Config { | 163 | fn rcc_config() -> rcc::Config { |
| 164 | let mut config = rcc::Config::default(); | 164 | let mut config = rcc::Config::default(); |
| 165 | config.sys_ck = Some(400.mhz().into()); | 165 | config.sys_ck = Some(400.mhz().into()); |
| 166 | config.pll1.q_ck = Some( 100.mhz().into() ); | 166 | config.pll1.q_ck = Some(100.mhz().into()); |
| 167 | config | 167 | config |
| 168 | } \ No newline at end of file | 168 | } |
diff --git a/examples/stm32h7/src/bin/spi.rs b/examples/stm32h7/src/bin/spi.rs index b2cf19615..e72211e81 100644 --- a/examples/stm32h7/src/bin/spi.rs +++ b/examples/stm32h7/src/bin/spi.rs | |||
| @@ -60,7 +60,7 @@ fn main() -> ! { | |||
| 60 | Dbgmcu::enable_all(); | 60 | Dbgmcu::enable_all(); |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | let p = embassy_stm32::init( config() ); | 63 | let p = embassy_stm32::init(config()); |
| 64 | 64 | ||
| 65 | let spi = spi::Spi::new( | 65 | let spi = spi::Spi::new( |
| 66 | p.SPI3, | 66 | p.SPI3, |
| @@ -90,6 +90,6 @@ fn config() -> Config { | |||
| 90 | fn rcc_config() -> rcc::Config { | 90 | fn rcc_config() -> rcc::Config { |
| 91 | let mut config = rcc::Config::default(); | 91 | let mut config = rcc::Config::default(); |
| 92 | config.sys_ck = Some(400.mhz().into()); | 92 | config.sys_ck = Some(400.mhz().into()); |
| 93 | config.pll1.q_ck = Some( 100.mhz().into() ); | 93 | config.pll1.q_ck = Some(100.mhz().into()); |
| 94 | config | 94 | config |
| 95 | } \ No newline at end of file | 95 | } |
diff --git a/examples/stm32h7/src/bin/spi_dma.rs b/examples/stm32h7/src/bin/spi_dma.rs index 0ce4212b8..aa120c974 100644 --- a/examples/stm32h7/src/bin/spi_dma.rs +++ b/examples/stm32h7/src/bin/spi_dma.rs | |||
| @@ -56,7 +56,7 @@ fn main() -> ! { | |||
| 56 | Dbgmcu::enable_all(); | 56 | Dbgmcu::enable_all(); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | let p = embassy_stm32::init( config() ); | 59 | let p = embassy_stm32::init(config()); |
| 60 | 60 | ||
| 61 | let spi = spi::Spi::new( | 61 | let spi = spi::Spi::new( |
| 62 | p.SPI3, | 62 | p.SPI3, |
| @@ -86,6 +86,6 @@ fn config() -> Config { | |||
| 86 | fn rcc_config() -> rcc::Config { | 86 | fn rcc_config() -> rcc::Config { |
| 87 | let mut config = rcc::Config::default(); | 87 | let mut config = rcc::Config::default(); |
| 88 | config.sys_ck = Some(400.mhz().into()); | 88 | config.sys_ck = Some(400.mhz().into()); |
| 89 | config.pll1.q_ck = Some( 100.mhz().into() ); | 89 | config.pll1.q_ck = Some(100.mhz().into()); |
| 90 | config | 90 | config |
| 91 | } | 91 | } |
