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/rotary_encoder.rs | |
| parent | fc978c2ee9dda07b9fe7113e2aa0f2d3fb33fd1b (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.rs | 3 |
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 | ||
| 3 | use fixed::traits::ToFixed; | ||
| 4 | |||
| 3 | use crate::gpio::Pull; | 5 | use crate::gpio::Pull; |
| 4 | use crate::pio::{self, Common, Config, FifoJoin, Instance, LoadedProgram, PioPin, ShiftDirection, StateMachine}; | 6 | use crate::pio::{self, Common, Config, FifoJoin, Instance, LoadedProgram, PioPin, ShiftDirection, StateMachine}; |
| 5 | use 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. |
| 8 | pub struct PioEncoderProgram<'a, PIO: Instance> { | 9 | pub struct PioEncoderProgram<'a, PIO: Instance> { |
