rustfmt usb examples
This commit is contained in:
examples
stm32f4
stm32f7
src
stm32h7
src
stm32l4
src
@ -79,7 +79,7 @@ async fn main(spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
|
@ -57,12 +57,12 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
config.vbus_detection = true;
|
config.vbus_detection = true;
|
||||||
|
|
||||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||||
|
|
||||||
// Create embassy-usb Config
|
// Create embassy-usb Config
|
||||||
|
@ -54,7 +54,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
|
@ -107,12 +107,12 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
config.vbus_detection = true;
|
config.vbus_detection = true;
|
||||||
|
|
||||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||||
|
|
||||||
// Create embassy-usb Config
|
// Create embassy-usb Config
|
||||||
|
@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
config.vbus_detection = true;
|
config.vbus_detection = true;
|
||||||
|
|
||||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||||
|
|
||||||
// Create embassy-usb Config
|
// Create embassy-usb Config
|
||||||
|
@ -54,12 +54,12 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
config.vbus_detection = true;
|
config.vbus_detection = true;
|
||||||
|
|
||||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||||
|
|
||||||
// Create embassy-usb Config
|
// Create embassy-usb Config
|
||||||
|
@ -55,12 +55,12 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
config.vbus_detection = true;
|
config.vbus_detection = true;
|
||||||
|
|
||||||
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
let driver = Driver::new_fs(p.USB_OTG_FS, Irqs, p.PA12, p.PA11, &mut ep_out_buffer, config);
|
||||||
|
|
||||||
// Create embassy-usb Config
|
// Create embassy-usb Config
|
||||||
|
@ -49,7 +49,7 @@ async fn main(_spawner: Spawner) {
|
|||||||
|
|
||||||
// Enable vbus_detection
|
// Enable vbus_detection
|
||||||
// Note: some boards don't have this wired up and might not require it,
|
// 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"!
|
// 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
|
// 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
|
// for more information
|
||||||
|
Reference in New Issue
Block a user