diff options
| author | Caleb Jamison <[email protected]> | 2024-10-09 11:44:58 -0400 |
|---|---|---|
| committer | Caleb Jamison <[email protected]> | 2024-10-09 11:44:58 -0400 |
| commit | c7f7728eb164edea2f8041d2511a976f9ebc17ca (patch) | |
| tree | 3cfd74e9fcb0cdb01d6c95b56c916ae0470f7df0 /embassy-rp/src/pio_programs/i2s.rs | |
| parent | fc978c2ee9dda07b9fe7113e2aa0f2d3fb33fd1b (diff) | |
cargo +nightly fmt
Diffstat (limited to 'embassy-rp/src/pio_programs/i2s.rs')
| -rw-r--r-- | embassy-rp/src/pio_programs/i2s.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/embassy-rp/src/pio_programs/i2s.rs b/embassy-rp/src/pio_programs/i2s.rs index 3c8ef8bb6..e3f1f89d4 100644 --- a/embassy-rp/src/pio_programs/i2s.rs +++ b/embassy-rp/src/pio_programs/i2s.rs | |||
| @@ -1,15 +1,13 @@ | |||
| 1 | //! Pio backed I2s output | 1 | //! Pio backed I2s output |
| 2 | 2 | ||
| 3 | use crate::{ | ||
| 4 | dma::{AnyChannel, Channel, Transfer}, | ||
| 5 | into_ref, | ||
| 6 | pio::{ | ||
| 7 | Common, Config, Direction, FifoJoin, Instance, LoadedProgram, PioPin, ShiftConfig, ShiftDirection, StateMachine, | ||
| 8 | }, | ||
| 9 | Peripheral, PeripheralRef, | ||
| 10 | }; | ||
| 11 | use fixed::traits::ToFixed; | 3 | use fixed::traits::ToFixed; |
| 12 | 4 | ||
| 5 | use crate::dma::{AnyChannel, Channel, Transfer}; | ||
| 6 | use crate::pio::{ | ||
| 7 | Common, Config, Direction, FifoJoin, Instance, LoadedProgram, PioPin, ShiftConfig, ShiftDirection, StateMachine, | ||
| 8 | }; | ||
| 9 | use crate::{into_ref, Peripheral, PeripheralRef}; | ||
| 10 | |||
| 13 | /// This struct represents an i2s output driver program | 11 | /// This struct represents an i2s output driver program |
| 14 | pub struct PioI2sOutProgram<'a, PIO: Instance> { | 12 | pub struct PioI2sOutProgram<'a, PIO: Instance> { |
| 15 | prg: LoadedProgram<'a, PIO>, | 13 | prg: LoadedProgram<'a, PIO>, |
