diff options
| author | Caleb Jamison <[email protected]> | 2024-10-09 11:47:04 -0400 |
|---|---|---|
| committer | Caleb Jamison <[email protected]> | 2024-10-09 11:47:04 -0400 |
| commit | e47c031b671555f3fffe6b128cbb9d3f8bfec534 (patch) | |
| tree | 22572c84ae17b23d5b645baa5474220117e93574 /examples | |
| parent | c7f7728eb164edea2f8041d2511a976f9ebc17ca (diff) | |
fmt examples too
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/rp/src/bin/pio_rotary_encoder.rs | 8 | ||||
| -rw-r--r-- | examples/rp/src/bin/pio_uart.rs | 3 | ||||
| -rw-r--r-- | examples/rp23/src/bin/pio_rotary_encoder.rs | 8 | ||||
| -rw-r--r-- | examples/rp23/src/bin/pio_uart.rs | 3 |
4 files changed, 8 insertions, 14 deletions
diff --git a/examples/rp/src/bin/pio_rotary_encoder.rs b/examples/rp/src/bin/pio_rotary_encoder.rs index a7ecc8d0e..2750f61ae 100644 --- a/examples/rp/src/bin/pio_rotary_encoder.rs +++ b/examples/rp/src/bin/pio_rotary_encoder.rs | |||
| @@ -5,12 +5,10 @@ | |||
| 5 | 5 | ||
| 6 | use defmt::info; | 6 | use defmt::info; |
| 7 | use embassy_executor::Spawner; | 7 | use embassy_executor::Spawner; |
| 8 | use embassy_rp::bind_interrupts; | ||
| 8 | use embassy_rp::peripherals::PIO0; | 9 | use embassy_rp::peripherals::PIO0; |
| 9 | use embassy_rp::{ | 10 | use embassy_rp::pio::{InterruptHandler, Pio}; |
| 10 | bind_interrupts, | 11 | use embassy_rp::pio_programs::rotary_encoder::{Direction, PioEncoder, PioEncoderProgram}; |
| 11 | pio::{InterruptHandler, Pio}, | ||
| 12 | pio_programs::rotary_encoder::{Direction, PioEncoder, PioEncoderProgram}, | ||
| 13 | }; | ||
| 14 | use {defmt_rtt as _, panic_probe as _}; | 12 | use {defmt_rtt as _, panic_probe as _}; |
| 15 | 13 | ||
| 16 | bind_interrupts!(struct Irqs { | 14 | bind_interrupts!(struct Irqs { |
diff --git a/examples/rp/src/bin/pio_uart.rs b/examples/rp/src/bin/pio_uart.rs index b9e01b0ac..aaf2a524f 100644 --- a/examples/rp/src/bin/pio_uart.rs +++ b/examples/rp/src/bin/pio_uart.rs | |||
| @@ -13,11 +13,10 @@ | |||
| 13 | use defmt::{info, panic, trace}; | 13 | use defmt::{info, panic, trace}; |
| 14 | use embassy_executor::Spawner; | 14 | use embassy_executor::Spawner; |
| 15 | use embassy_futures::join::{join, join3}; | 15 | use embassy_futures::join::{join, join3}; |
| 16 | use embassy_rp::bind_interrupts; | ||
| 17 | use embassy_rp::peripherals::{PIO0, USB}; | 16 | use embassy_rp::peripherals::{PIO0, USB}; |
| 18 | use embassy_rp::pio; | ||
| 19 | use embassy_rp::pio_programs::uart::{PioUartRx, PioUartRxProgram, PioUartTx, PioUartTxProgram}; | 17 | use embassy_rp::pio_programs::uart::{PioUartRx, PioUartRxProgram, PioUartTx, PioUartTxProgram}; |
| 20 | use embassy_rp::usb::{Driver, Instance, InterruptHandler}; | 18 | use embassy_rp::usb::{Driver, Instance, InterruptHandler}; |
| 19 | use embassy_rp::{bind_interrupts, pio}; | ||
| 21 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; | 20 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; |
| 22 | use embassy_sync::pipe::Pipe; | 21 | use embassy_sync::pipe::Pipe; |
| 23 | use embassy_usb::class::cdc_acm::{CdcAcmClass, Receiver, Sender, State}; | 22 | use embassy_usb::class::cdc_acm::{CdcAcmClass, Receiver, Sender, State}; |
diff --git a/examples/rp23/src/bin/pio_rotary_encoder.rs b/examples/rp23/src/bin/pio_rotary_encoder.rs index 9a953951f..2bb0e67f9 100644 --- a/examples/rp23/src/bin/pio_rotary_encoder.rs +++ b/examples/rp23/src/bin/pio_rotary_encoder.rs | |||
| @@ -5,13 +5,11 @@ | |||
| 5 | 5 | ||
| 6 | use defmt::info; | 6 | use defmt::info; |
| 7 | use embassy_executor::Spawner; | 7 | use embassy_executor::Spawner; |
| 8 | use embassy_rp::bind_interrupts; | ||
| 8 | use embassy_rp::block::ImageDef; | 9 | use embassy_rp::block::ImageDef; |
| 9 | use embassy_rp::peripherals::PIO0; | 10 | use embassy_rp::peripherals::PIO0; |
| 10 | use embassy_rp::{ | 11 | use embassy_rp::pio::{InterruptHandler, Pio}; |
| 11 | bind_interrupts, | 12 | use embassy_rp::pio_programs::rotary_encoder::{Direction, PioEncoder, PioEncoderProgram}; |
| 12 | pio::{InterruptHandler, Pio}, | ||
| 13 | pio_programs::rotary_encoder::{Direction, PioEncoder, PioEncoderProgram}, | ||
| 14 | }; | ||
| 15 | use {defmt_rtt as _, panic_probe as _}; | 13 | use {defmt_rtt as _, panic_probe as _}; |
| 16 | 14 | ||
| 17 | #[link_section = ".start_block"] | 15 | #[link_section = ".start_block"] |
diff --git a/examples/rp23/src/bin/pio_uart.rs b/examples/rp23/src/bin/pio_uart.rs index 6899a5d7c..f8398c22a 100644 --- a/examples/rp23/src/bin/pio_uart.rs +++ b/examples/rp23/src/bin/pio_uart.rs | |||
| @@ -13,12 +13,11 @@ | |||
| 13 | use defmt::{info, panic, trace}; | 13 | use defmt::{info, panic, trace}; |
| 14 | use embassy_executor::Spawner; | 14 | use embassy_executor::Spawner; |
| 15 | use embassy_futures::join::{join, join3}; | 15 | use embassy_futures::join::{join, join3}; |
| 16 | use embassy_rp::bind_interrupts; | ||
| 17 | use embassy_rp::block::ImageDef; | 16 | use embassy_rp::block::ImageDef; |
| 18 | use embassy_rp::peripherals::{PIO0, USB}; | 17 | use embassy_rp::peripherals::{PIO0, USB}; |
| 19 | use embassy_rp::pio; | ||
| 20 | use embassy_rp::pio_programs::uart::{PioUartRx, PioUartRxProgram, PioUartTx, PioUartTxProgram}; | 18 | use embassy_rp::pio_programs::uart::{PioUartRx, PioUartRxProgram, PioUartTx, PioUartTxProgram}; |
| 21 | use embassy_rp::usb::{Driver, Instance, InterruptHandler}; | 19 | use embassy_rp::usb::{Driver, Instance, InterruptHandler}; |
| 20 | use embassy_rp::{bind_interrupts, pio}; | ||
| 22 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; | 21 | use embassy_sync::blocking_mutex::raw::NoopRawMutex; |
| 23 | use embassy_sync::pipe::Pipe; | 22 | use embassy_sync::pipe::Pipe; |
| 24 | use embassy_usb::class::cdc_acm::{CdcAcmClass, Receiver, Sender, State}; | 23 | use embassy_usb::class::cdc_acm::{CdcAcmClass, Receiver, Sender, State}; |
