Skip to content

Commit 08c4235

Browse files
format
1 parent f56adba commit 08c4235

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

  • device/usb-bulk-stm32-nucleo-f429zi/src

device/usb-bulk-stm32-nucleo-f429zi/src/main.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33

44
use defmt::info;
55
use defmt_rtt as _;
6+
use embassy_executor::Spawner;
67
use embassy_futures::join::join;
78
use embassy_stm32::{
8-
bind_interrupts, peripherals::USB_OTG_FS, time::Hertz, usb::{Driver, InterruptHandler}, Config
9+
Config, bind_interrupts,
10+
peripherals::USB_OTG_FS,
11+
time::Hertz,
12+
usb::{Driver, InterruptHandler},
913
};
1014
use embassy_time::Timer;
11-
use panic_probe as _;
12-
use embassy_usb::{msos, msos::windows_version, Builder, Config as UsbConfig};
1315
use embassy_usb::driver::{Endpoint, EndpointIn, EndpointOut};
14-
use embassy_executor::Spawner;
16+
use embassy_usb::{Builder, Config as UsbConfig, msos, msos::windows_version};
17+
use panic_probe as _;
1518

1619
// This is a randomly generated GUID to allow clients on Windows to find our device
1720
const DEVICE_INTERFACE_GUIDS: &[&str] = &["{AFB9A6FB-30BA-44BC-9232-806CFC875321}"];
@@ -118,7 +121,7 @@ async fn main(_spawner: Spawner) {
118121
let usb_driver = usb.run();
119122

120123
// This is the actual task that reads and write
121-
// back data. This can be split into
124+
// back data. This can be split into
122125
// several tasks.
123126
let usb_read_write = async {
124127
loop {

0 commit comments

Comments
 (0)