aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob McWhirter <[email protected]>2021-08-04 13:42:06 -0400
committerBob McWhirter <[email protected]>2021-08-04 13:42:06 -0400
commitf91bfef799cb3c9a3107caba80c3343a688c8527 (patch)
treea6c57d9d3dc61d56cf08b72fb17e8131cb6515b4
parentf4971fbb791e6d58cddf88aa8a39d6fe16c05b4c (diff)
Formatting again.
-rw-r--r--examples/stm32h7/src/bin/eth.rs2
-rw-r--r--examples/stm32h7/src/bin/spi.rs1
-rw-r--r--examples/stm32h7/src/bin/spi_dma.rs2
-rw-r--r--examples/stm32h7/src/example_common.rs2
4 files changed, 2 insertions, 5 deletions
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs
index 4a841405f..323ffc8c9 100644
--- a/examples/stm32h7/src/bin/eth.rs
+++ b/examples/stm32h7/src/bin/eth.rs
@@ -22,6 +22,7 @@ use embassy_net::{
22 Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket, 22 Config as NetConfig, Ipv4Address, Ipv4Cidr, StackResources, StaticConfigurator, TcpSocket,
23}; 23};
24use embassy_stm32::clock::{Alarm, Clock}; 24use embassy_stm32::clock::{Alarm, Clock};
25use embassy_stm32::dbgmcu::Dbgmcu;
25use embassy_stm32::eth::lan8742a::LAN8742A; 26use embassy_stm32::eth::lan8742a::LAN8742A;
26use embassy_stm32::eth::{Ethernet, State}; 27use embassy_stm32::eth::{Ethernet, State};
27use embassy_stm32::rng::Random; 28use embassy_stm32::rng::Random;
@@ -29,7 +30,6 @@ use embassy_stm32::{interrupt, peripherals};
29use heapless::Vec; 30use heapless::Vec;
30use panic_probe as _; 31use panic_probe as _;
31use peripherals::{RNG, TIM2}; 32use peripherals::{RNG, TIM2};
32use embassy_stm32::dbgmcu::Dbgmcu;
33 33
34#[embassy::task] 34#[embassy::task]
35async fn main_task( 35async fn main_task(
diff --git a/examples/stm32h7/src/bin/spi.rs b/examples/stm32h7/src/bin/spi.rs
index ed3e369bd..ef3ef2493 100644
--- a/examples/stm32h7/src/bin/spi.rs
+++ b/examples/stm32h7/src/bin/spi.rs
@@ -78,4 +78,3 @@ fn main() -> ! {
78 unwrap!(spawner.spawn(main_task(spi))); 78 unwrap!(spawner.spawn(main_task(spi)));
79 }) 79 })
80} 80}
81
diff --git a/examples/stm32h7/src/bin/spi_dma.rs b/examples/stm32h7/src/bin/spi_dma.rs
index ae6fe3ca0..ccf0a703b 100644
--- a/examples/stm32h7/src/bin/spi_dma.rs
+++ b/examples/stm32h7/src/bin/spi_dma.rs
@@ -74,5 +74,3 @@ fn main() -> ! {
74 unwrap!(spawner.spawn(main_task(spi))); 74 unwrap!(spawner.spawn(main_task(spi)));
75 }) 75 })
76} 76}
77
78
diff --git a/examples/stm32h7/src/example_common.rs b/examples/stm32h7/src/example_common.rs
index 25d80f654..2e26730fa 100644
--- a/examples/stm32h7/src/example_common.rs
+++ b/examples/stm32h7/src/example_common.rs
@@ -6,8 +6,8 @@ use panic_probe as _;
6pub use defmt::*; 6pub use defmt::*;
7 7
8use core::sync::atomic::{AtomicUsize, Ordering}; 8use core::sync::atomic::{AtomicUsize, Ordering};
9use embassy_stm32::Config;
10use embassy_stm32::time::U32Ext; 9use embassy_stm32::time::U32Ext;
10use embassy_stm32::Config;
11 11
12defmt::timestamp! {"{=u64}", { 12defmt::timestamp! {"{=u64}", {
13 static COUNT: AtomicUsize = AtomicUsize::new(0); 13 static COUNT: AtomicUsize = AtomicUsize::new(0);