diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2023-02-19 22:46:57 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-19 22:46:57 +0000 |
| commit | 4ad255b34b94f8526fa819f3b962aa43eccbdbcc (patch) | |
| tree | e75c08c9e544d9309aaadea8fa7a8b6dbd5c107b | |
| parent | 4fd59f26fbb75d277c1084ce496342c358ee99af (diff) | |
| parent | e641db1f7565c3eb46bae04b5a8c9aef01900f53 (diff) | |
Merge #1217
1217: Fix a typo in "PioPeripheral" r=Dirbaio a=SekoiaTree
Renames "PioPeripherial" to "PioPeripheral" (without the second i).
Co-authored-by: sekoia <[email protected]>
| -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 _}; |
