diff options
| author | Joël Schulz-Ansres <[email protected]> | 2024-04-22 01:06:59 +0200 |
|---|---|---|
| committer | Joël Schulz-Ansres <[email protected]> | 2024-04-22 01:06:59 +0200 |
| commit | 01b36a44348dc8c065fdeb8787ac5a97ca8197f3 (patch) | |
| tree | 25f28fda72c51075d5a25677d431f33d9022b32b /examples/stm32f7/src/bin/usb_serial.rs | |
| parent | 896d0e7cd846971eb472555eb13ebe28e0b2d536 (diff) | |
rustfmt usb examples
Diffstat (limited to 'examples/stm32f7/src/bin/usb_serial.rs')
| -rw-r--r-- | examples/stm32f7/src/bin/usb_serial.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32f7/src/bin/usb_serial.rs b/examples/stm32f7/src/bin/usb_serial.rs index bb42f4cc8..2fee561c7 100644 --- a/examples/stm32f7/src/bin/usb_serial.rs +++ b/examples/stm32f7/src/bin/usb_serial.rs | |||
| @@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) { | |||
| 54 | 54 | ||
| 55 | // Enable vbus_detection | 55 | // Enable vbus_detection |
| 56 | // Note: some boards don't have this wired up and might not require it, | 56 | // Note: some boards don't have this wired up and might not require it, |
| 57 | // as they are powered through usb! | 57 | // as they are powered through usb! |
| 58 | // If you hang on boot, try setting this to "false"! | 58 | // If you hang on boot, try setting this to "false"! |
| 59 | // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure | 59 | // See https://embassy.dev/book/dev/faq.html#_the_usb_examples_are_not_working_on_my_board_is_there_anything_else_i_need_to_configure |
| 60 | // for more information | 60 | // for more information |
| 61 | config.vbus_detection = true; | 61 | config.vbus_detection = true; |
| 62 | 62 | ||
| 63 | let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config); | 63 | let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config); |
| 64 | 64 | ||
| 65 | // Create embassy-usb Config | 65 | // Create embassy-usb Config |
