aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src
diff options
context:
space:
mode:
authorJoël Schulz-Ansres <[email protected]>2024-04-22 01:06:59 +0200
committerJoël Schulz-Ansres <[email protected]>2024-04-22 01:06:59 +0200
commit01b36a44348dc8c065fdeb8787ac5a97ca8197f3 (patch)
tree25f28fda72c51075d5a25677d431f33d9022b32b /examples/stm32f4/src
parent896d0e7cd846971eb472555eb13ebe28e0b2d536 (diff)
rustfmt usb examples
Diffstat (limited to 'examples/stm32f4/src')
-rw-r--r--examples/stm32f4/src/bin/usb_ethernet.rs2
-rw-r--r--examples/stm32f4/src/bin/usb_hid_keyboard.rs4
-rw-r--r--examples/stm32f4/src/bin/usb_hid_mouse.rs2
-rw-r--r--examples/stm32f4/src/bin/usb_raw.rs4
-rw-r--r--examples/stm32f4/src/bin/usb_serial.rs4
5 files changed, 8 insertions, 8 deletions
diff --git a/examples/stm32f4/src/bin/usb_ethernet.rs b/examples/stm32f4/src/bin/usb_ethernet.rs
index 284c74564..34e58f282 100644
--- a/examples/stm32f4/src/bin/usb_ethernet.rs
+++ b/examples/stm32f4/src/bin/usb_ethernet.rs
@@ -79,7 +79,7 @@ async fn main(spawner: Spawner) {
79 79
80 // Enable vbus_detection 80 // Enable vbus_detection
81 // Note: some boards don't have this wired up and might not require it, 81 // Note: some boards don't have this wired up and might not require it,
82 // as they are powered through usb! 82 // as they are powered through usb!
83 // If you hang on boot, try setting this to "false"! 83 // If you hang on boot, try setting this to "false"!
84 // 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 84 // 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
85 // for more information 85 // for more information
diff --git a/examples/stm32f4/src/bin/usb_hid_keyboard.rs b/examples/stm32f4/src/bin/usb_hid_keyboard.rs
index 4d9086156..7067d15a3 100644
--- a/examples/stm32f4/src/bin/usb_hid_keyboard.rs
+++ b/examples/stm32f4/src/bin/usb_hid_keyboard.rs
@@ -57,12 +57,12 @@ async fn main(_spawner: Spawner) {
57 57
58 // Enable vbus_detection 58 // Enable vbus_detection
59 // Note: some boards don't have this wired up and might not require it, 59 // Note: some boards don't have this wired up and might not require it,
60 // as they are powered through usb! 60 // as they are powered through usb!
61 // If you hang on boot, try setting this to "false"! 61 // If you hang on boot, try setting this to "false"!
62 // 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 62 // 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
63 // for more information 63 // for more information
64 config.vbus_detection = true; 64 config.vbus_detection = true;
65 65
66 let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config); 66 let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
67 67
68 // Create embassy-usb Config 68 // Create embassy-usb Config
diff --git a/examples/stm32f4/src/bin/usb_hid_mouse.rs b/examples/stm32f4/src/bin/usb_hid_mouse.rs
index 2b8e2f147..0d04d2a9c 100644
--- a/examples/stm32f4/src/bin/usb_hid_mouse.rs
+++ b/examples/stm32f4/src/bin/usb_hid_mouse.rs
@@ -54,7 +54,7 @@ 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
diff --git a/examples/stm32f4/src/bin/usb_raw.rs b/examples/stm32f4/src/bin/usb_raw.rs
index 00fdff2bf..d058abdd0 100644
--- a/examples/stm32f4/src/bin/usb_raw.rs
+++ b/examples/stm32f4/src/bin/usb_raw.rs
@@ -107,12 +107,12 @@ async fn main(_spawner: Spawner) {
107 107
108 // Enable vbus_detection 108 // Enable vbus_detection
109 // Note: some boards don't have this wired up and might not require it, 109 // Note: some boards don't have this wired up and might not require it,
110 // as they are powered through usb! 110 // as they are powered through usb!
111 // If you hang on boot, try setting this to "false"! 111 // If you hang on boot, try setting this to "false"!
112 // 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 112 // 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
113 // for more information 113 // for more information
114 config.vbus_detection = true; 114 config.vbus_detection = true;
115 115
116 let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config); 116 let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
117 117
118 // Create embassy-usb Config 118 // Create embassy-usb Config
diff --git a/examples/stm32f4/src/bin/usb_serial.rs b/examples/stm32f4/src/bin/usb_serial.rs
index 94c6a4301..25806dd85 100644
--- a/examples/stm32f4/src/bin/usb_serial.rs
+++ b/examples/stm32f4/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