mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
rustfmt usb examples
This commit is contained in:
parent
896d0e7cd8
commit
01b36a4434
@ -79,7 +79,7 @@ async fn main(spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
|
@ -57,12 +57,12 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
config.vbus_detection = true;
|
||||
|
||||
|
||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||
|
||||
// Create embassy-usb Config
|
||||
|
@ -54,7 +54,7 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
|
@ -107,12 +107,12 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
config.vbus_detection = true;
|
||||
|
||||
|
||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||
|
||||
// Create embassy-usb Config
|
||||
|
@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
config.vbus_detection = true;
|
||||
|
||||
|
||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||
|
||||
// Create embassy-usb Config
|
||||
|
@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
config.vbus_detection = true;
|
||||
|
||||
|
||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||
|
||||
// Create embassy-usb Config
|
||||
|
@ -55,12 +55,12 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
config.vbus_detection = true;
|
||||
|
||||
|
||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||
|
||||
// Create embassy-usb Config
|
||||
|
@ -49,7 +49,7 @@ async fn main(_spawner: Spawner) {
|
||||
|
||||
// Enable vbus_detection
|
||||
// Note: some boards don't have this wired up and might not require it,
|
||||
// as they are powered through usb!
|
||||
// as they are powered through usb!
|
||||
// If you hang on boot, try setting this to "false"!
|
||||
// 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
|
||||
// for more information
|
||||
|
Loading…
Reference in New Issue
Block a user