diff options
| author | Dario Nieuwenhuis <[email protected]> | 2025-03-26 16:01:37 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2025-03-27 15:18:06 +0100 |
| commit | d41eeeae79388f219bf6a84e2f7bde9f6b532516 (patch) | |
| tree | 678b6fc732216e529dc38e6f65b72a309917ac32 /embassy-rp/src/pio_programs/stepper.rs | |
| parent | 9edf5b7f049f95742b60b041e4443967d8a6b708 (diff) | |
Remove Peripheral trait, rename PeripheralRef->Peri.
Diffstat (limited to 'embassy-rp/src/pio_programs/stepper.rs')
| -rw-r--r-- | embassy-rp/src/pio_programs/stepper.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/embassy-rp/src/pio_programs/stepper.rs b/embassy-rp/src/pio_programs/stepper.rs index c8f74167d..495191659 100644 --- a/embassy-rp/src/pio_programs/stepper.rs +++ b/embassy-rp/src/pio_programs/stepper.rs | |||
| @@ -7,6 +7,7 @@ use fixed::types::extra::U8; | |||
| 7 | use fixed::FixedU32; | 7 | use fixed::FixedU32; |
| 8 | 8 | ||
| 9 | use crate::pio::{Common, Config, Direction, Instance, Irq, LoadedProgram, PioPin, StateMachine}; | 9 | use crate::pio::{Common, Config, Direction, Instance, Irq, LoadedProgram, PioPin, StateMachine}; |
| 10 | use crate::Peri; | ||
| 10 | 11 | ||
| 11 | /// This struct represents a Stepper driver program loaded into pio instruction memory. | 12 | /// This struct represents a Stepper driver program loaded into pio instruction memory. |
| 12 | pub struct PioStepperProgram<'a, PIO: Instance> { | 13 | pub struct PioStepperProgram<'a, PIO: Instance> { |
| @@ -50,10 +51,10 @@ impl<'d, T: Instance, const SM: usize> PioStepper<'d, T, SM> { | |||
| 50 | pio: &mut Common<'d, T>, | 51 | pio: &mut Common<'d, T>, |
| 51 | mut sm: StateMachine<'d, T, SM>, | 52 | mut sm: StateMachine<'d, T, SM>, |
| 52 | irq: Irq<'d, T, SM>, | 53 | irq: Irq<'d, T, SM>, |
| 53 | pin0: impl PioPin, | 54 | pin0: Peri<'d, impl PioPin>, |
| 54 | pin1: impl PioPin, | 55 | pin1: Peri<'d, impl PioPin>, |
| 55 | pin2: impl PioPin, | 56 | pin2: Peri<'d, impl PioPin>, |
| 56 | pin3: impl PioPin, | 57 | pin3: Peri<'d, impl PioPin>, |
| 57 | program: &PioStepperProgram<'d, T>, | 58 | program: &PioStepperProgram<'d, T>, |
| 58 | ) -> Self { | 59 | ) -> Self { |
| 59 | let pin0 = pio.make_pio_pin(pin0); | 60 | let pin0 = pio.make_pio_pin(pin0); |
