aboutsummaryrefslogtreecommitdiff
path: root/embassy-rp/src/pio_programs/rotary_encoder.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/rotary_encoder.rs
parentfc978c2ee9dda07b9fe7113e2aa0f2d3fb33fd1b (diff)
cargo +nightly fmt
Diffstat (limited to 'embassy-rp/src/pio_programs/rotary_encoder.rs')
-rw-r--r--embassy-rp/src/pio_programs/rotary_encoder.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/embassy-rp/src/pio_programs/rotary_encoder.rs b/embassy-rp/src/pio_programs/rotary_encoder.rs
index 323f839bc..86423fd31 100644
--- a/embassy-rp/src/pio_programs/rotary_encoder.rs
+++ b/embassy-rp/src/pio_programs/rotary_encoder.rs
@@ -1,8 +1,9 @@
1//! PIO backed quadrature encoder 1//! PIO backed quadrature encoder
2 2
3use fixed::traits::ToFixed;
4
3use crate::gpio::Pull; 5use crate::gpio::Pull;
4use crate::pio::{self, Common, Config, FifoJoin, Instance, LoadedProgram, PioPin, ShiftDirection, StateMachine}; 6use crate::pio::{self, Common, Config, FifoJoin, Instance, LoadedProgram, PioPin, ShiftDirection, StateMachine};
5use fixed::traits::ToFixed;
6 7
7/// This struct represents an Encoder program loaded into pio instruction memory. 8/// This struct represents an Encoder program loaded into pio instruction memory.
8pub struct PioEncoderProgram<'a, PIO: Instance> { 9pub struct PioEncoderProgram<'a, PIO: Instance> {