aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2023-02-19 22:46:57 +0000
committerGitHub <[email protected]>2023-02-19 22:46:57 +0000
commit4ad255b34b94f8526fa819f3b962aa43eccbdbcc (patch)
treee75c08c9e544d9309aaadea8fa7a8b6dbd5c107b
parent4fd59f26fbb75d277c1084ce496342c358ee99af (diff)
parente641db1f7565c3eb46bae04b5a8c9aef01900f53 (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.rs4
-rw-r--r--examples/rp/src/bin/pio_async.rs2
-rw-r--r--examples/rp/src/bin/pio_dma.rs2
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
1177pub trait PioPeripherial: Sized { 1177pub 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
1250macro_rules! impl_pio_sm { 1250macro_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 @@
4use defmt::info; 4use defmt::info;
5use embassy_executor::Spawner; 5use embassy_executor::Spawner;
6use embassy_rp::gpio::{AnyPin, Pin}; 6use embassy_rp::gpio::{AnyPin, Pin};
7use embassy_rp::pio::{Pio0, PioPeripherial, PioStateMachine, PioStateMachineInstance, ShiftDirection, Sm0, Sm1, Sm2}; 7use embassy_rp::pio::{Pio0, PioPeripheral, PioStateMachine, PioStateMachineInstance, ShiftDirection, Sm0, Sm1, Sm2};
8use embassy_rp::pio_instr_util; 8use embassy_rp::pio_instr_util;
9use embassy_rp::relocate::RelocatedProgram; 9use embassy_rp::relocate::RelocatedProgram;
10use {defmt_rtt as _, panic_probe as _}; 10use {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 @@
4use defmt::info; 4use defmt::info;
5use embassy_executor::Spawner; 5use embassy_executor::Spawner;
6use embassy_futures::join::join; 6use embassy_futures::join::join;
7use embassy_rp::pio::{PioPeripherial, PioStateMachine, ShiftDirection}; 7use embassy_rp::pio::{PioPeripheral, PioStateMachine, ShiftDirection};
8use embassy_rp::relocate::RelocatedProgram; 8use embassy_rp::relocate::RelocatedProgram;
9use embassy_rp::{pio_instr_util, Peripheral}; 9use embassy_rp::{pio_instr_util, Peripheral};
10use {defmt_rtt as _, panic_probe as _}; 10use {defmt_rtt as _, panic_probe as _};