diff options
| author | sekoia <[email protected]> | 2023-02-15 14:10:07 +0100 |
|---|---|---|
| committer | sekoia <[email protected]> | 2023-02-15 14:10:07 +0100 |
| commit | e641db1f7565c3eb46bae04b5a8c9aef01900f53 (patch) | |
| tree | 3743c6070fb44e02574a788d884b315a1bf6520e | |
| parent | e3f8020c3bdf726dfa451b5b190f27191507a18f (diff) | |
Fix a typo in "PioPeripheral"
| -rw-r--r-- | embassy-rp/src/pio.rs | 4 | ||||
| -rw-r--r-- | examples/rp/src/bin/pio_async.rs | 2 | ||||
| -rw-r--r-- | examples/rp/src/bin/pio_dma.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/embassy-rp/src/pio.rs b/embassy-rp/src/pio.rs index 1a067e54f..2fb2783de 100644 --- a/embassy-rp/src/pio.rs +++ b/embassy-rp/src/pio.rs | |||
| @@ -1174,7 +1174,7 @@ impl<const SM_NO: u8> SmInstance for SmInstanceBase<SM_NO> { | |||
| 1174 | const SM_NO: u8 = SM_NO; | 1174 | const SM_NO: u8 = SM_NO; |
| 1175 | } | 1175 | } |
| 1176 | 1176 | ||
| 1177 | pub trait PioPeripherial: Sized { | 1177 | pub trait PioPeripheral: Sized { |
| 1178 | type Pio: PioInstance; | 1178 | type Pio: PioInstance; |
| 1179 | fn pio(&self) -> u8 { | 1179 | fn pio(&self) -> u8 { |
| 1180 | let _ = self; | 1180 | let _ = self; |
| @@ -1249,7 +1249,7 @@ pub type Sm3 = SmInstanceBase<3>; | |||
| 1249 | 1249 | ||
| 1250 | macro_rules! impl_pio_sm { | 1250 | macro_rules! impl_pio_sm { |
| 1251 | ($name:ident, $pio:expr) => { | 1251 | ($name:ident, $pio:expr) => { |
| 1252 | impl PioPeripherial for peripherals::$name { | 1252 | impl PioPeripheral for peripherals::$name { |
| 1253 | type Pio = PioInstanceBase<$pio>; | 1253 | type Pio = PioInstanceBase<$pio>; |
| 1254 | } | 1254 | } |
| 1255 | }; | 1255 | }; |
diff --git a/examples/rp/src/bin/pio_async.rs b/examples/rp/src/bin/pio_async.rs index 45a8c73f7..e616d8c5a 100644 --- a/examples/rp/src/bin/pio_async.rs +++ b/examples/rp/src/bin/pio_async.rs | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | use defmt::info; | 4 | use defmt::info; |
| 5 | use embassy_executor::Spawner; | 5 | use embassy_executor::Spawner; |
| 6 | use embassy_rp::gpio::{AnyPin, Pin}; | 6 | use embassy_rp::gpio::{AnyPin, Pin}; |
| 7 | use embassy_rp::pio::{Pio0, PioPeripherial, PioStateMachine, PioStateMachineInstance, ShiftDirection, Sm0, Sm1, Sm2}; | 7 | use embassy_rp::pio::{Pio0, PioPeripheral, PioStateMachine, PioStateMachineInstance, ShiftDirection, Sm0, Sm1, Sm2}; |
| 8 | use embassy_rp::pio_instr_util; | 8 | use embassy_rp::pio_instr_util; |
| 9 | use embassy_rp::relocate::RelocatedProgram; | 9 | use embassy_rp::relocate::RelocatedProgram; |
| 10 | use {defmt_rtt as _, panic_probe as _}; | 10 | use {defmt_rtt as _, panic_probe as _}; |
diff --git a/examples/rp/src/bin/pio_dma.rs b/examples/rp/src/bin/pio_dma.rs index b19ef4083..145e4a656 100644 --- a/examples/rp/src/bin/pio_dma.rs +++ b/examples/rp/src/bin/pio_dma.rs | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | use defmt::info; | 4 | use defmt::info; |
| 5 | use embassy_executor::Spawner; | 5 | use embassy_executor::Spawner; |
| 6 | use embassy_futures::join::join; | 6 | use embassy_futures::join::join; |
| 7 | use embassy_rp::pio::{PioPeripherial, PioStateMachine, ShiftDirection}; | 7 | use embassy_rp::pio::{PioPeripheral, PioStateMachine, ShiftDirection}; |
| 8 | use embassy_rp::relocate::RelocatedProgram; | 8 | use embassy_rp::relocate::RelocatedProgram; |
| 9 | use embassy_rp::{pio_instr_util, Peripheral}; | 9 | use embassy_rp::{pio_instr_util, Peripheral}; |
| 10 | use {defmt_rtt as _, panic_probe as _}; | 10 | use {defmt_rtt as _, panic_probe as _}; |
