aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/pio_programs/i2s.rs
diff options
context:
space:
mode:
authorCaleb Jamison <[email protected]>2024-10-09 11:44:58 -0400
committerCaleb Jamison <[email protected]>2024-10-09 11:44:58 -0400
commitc7f7728eb164edea2f8041d2511a976f9ebc17ca (patch)
tree3cfd74e9fcb0cdb01d6c95b56c916ae0470f7df0 /embassy-rp/src/pio_programs/i2s.rs
parentfc978c2ee9dda07b9fe7113e2aa0f2d3fb33fd1b (diff)
cargo +nightly fmt
Diffstat (limited to 'embassy-rp/src/pio_programs/i2s.rs')
-rw-r--r--embassy-rp/src/pio_programs/i2s.rs14
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
3use 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};
11use fixed::traits::ToFixed; 3use fixed::traits::ToFixed;
12 4
5use crate::dma::{AnyChannel, Channel, Transfer};
6use crate::pio::{
7 Common, Config, Direction, FifoJoin, Instance, LoadedProgram, PioPin, ShiftConfig, ShiftDirection, StateMachine,
8};
9use crate::{into_ref, Peripheral, PeripheralRef};
10
13/// This struct represents an i2s output driver program 11/// This struct represents an i2s output driver program
14pub struct PioI2sOutProgram<'a, PIO: Instance> { 12pub struct PioI2sOutProgram<'a, PIO: Instance> {
15 prg: LoadedProgram<'a, PIO>, 13 prg: LoadedProgram<'a, PIO>,