diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h7/src/bin/eth.rs | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/spi.rs | 1 | ||||
| -rw-r--r-- | examples/stm32h7/src/bin/spi_dma.rs | 2 | ||||
| -rw-r--r-- | examples/stm32h7/src/example_common.rs | 2 |
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 | }; |
| 24 | use embassy_stm32::clock::{Alarm, Clock}; | 24 | use embassy_stm32::clock::{Alarm, Clock}; |
| 25 | use embassy_stm32::dbgmcu::Dbgmcu; | ||
| 25 | use embassy_stm32::eth::lan8742a::LAN8742A; | 26 | use embassy_stm32::eth::lan8742a::LAN8742A; |
| 26 | use embassy_stm32::eth::{Ethernet, State}; | 27 | use embassy_stm32::eth::{Ethernet, State}; |
| 27 | use embassy_stm32::rng::Random; | 28 | use embassy_stm32::rng::Random; |
| @@ -29,7 +30,6 @@ use embassy_stm32::{interrupt, peripherals}; | |||
| 29 | use heapless::Vec; | 30 | use heapless::Vec; |
| 30 | use panic_probe as _; | 31 | use panic_probe as _; |
| 31 | use peripherals::{RNG, TIM2}; | 32 | use peripherals::{RNG, TIM2}; |
| 32 | use embassy_stm32::dbgmcu::Dbgmcu; | ||
| 33 | 33 | ||
| 34 | #[embassy::task] | 34 | #[embassy::task] |
| 35 | async fn main_task( | 35 | async 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 _; | |||
| 6 | pub use defmt::*; | 6 | pub use defmt::*; |
| 7 | 7 | ||
| 8 | use core::sync::atomic::{AtomicUsize, Ordering}; | 8 | use core::sync::atomic::{AtomicUsize, Ordering}; |
| 9 | use embassy_stm32::Config; | ||
| 10 | use embassy_stm32::time::U32Ext; | 9 | use embassy_stm32::time::U32Ext; |
| 10 | use embassy_stm32::Config; | ||
| 11 | 11 | ||
| 12 | defmt::timestamp! {"{=u64}", { | 12 | defmt::timestamp! {"{=u64}", { |
| 13 | static COUNT: AtomicUsize = AtomicUsize::new(0); | 13 | static COUNT: AtomicUsize = AtomicUsize::new(0); |
