aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-08-07 23:25:50 +0200
committerDario Nieuwenhuis <[email protected]>2022-08-07 23:25:50 +0200
commit89e2e25d6f40310d7d6c7aa403148bfc7e1d6aa9 (patch)
tree9f0d550bf45629ac964d2cff32dfdf12d2ea6de5
parentba67f6d3a8c84262fcc9b2020670515d192555f1 (diff)
rp/gpio: remove unused lifetimes.
-rw-r--r--embassy-rp/src/gpio.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs
index 9779f1378..a5df6068d 100644
--- a/embassy-rp/src/gpio.rs
+++ b/embassy-rp/src/gpio.rs
@@ -85,27 +85,27 @@ impl<'d, T: Pin> Input<'d, T> {
85 } 85 }
86 86
87 #[inline] 87 #[inline]
88 pub async fn wait_for_high<'a>(&mut self) { 88 pub async fn wait_for_high(&mut self) {
89 self.pin.wait_for_high().await; 89 self.pin.wait_for_high().await;
90 } 90 }
91 91
92 #[inline] 92 #[inline]
93 pub async fn wait_for_low<'a>(&mut self) { 93 pub async fn wait_for_low(&mut self) {
94 self.pin.wait_for_low().await; 94 self.pin.wait_for_low().await;
95 } 95 }
96 96
97 #[inline] 97 #[inline]
98 pub async fn wait_for_rising_edge<'a>(&mut self) { 98 pub async fn wait_for_rising_edge(&mut self) {
99 self.pin.wait_for_rising_edge().await; 99 self.pin.wait_for_rising_edge().await;
100 } 100 }
101 101
102 #[inline] 102 #[inline]
103 pub async fn wait_for_falling_edge<'a>(&mut self) { 103 pub async fn wait_for_falling_edge(&mut self) {
104 self.pin.wait_for_falling_edge().await; 104 self.pin.wait_for_falling_edge().await;
105 } 105 }
106 106
107 #[inline] 107 #[inline]
108 pub async fn wait_for_any_edge<'a>(&mut self) { 108 pub async fn wait_for_any_edge(&mut self) {
109 self.pin.wait_for_any_edge().await; 109 self.pin.wait_for_any_edge().await;
110 } 110 }
111} 111}
@@ -545,29 +545,29 @@ impl<'d, T: Pin> Flex<'d, T> {
545 } 545 }
546 546
547 #[inline] 547 #[inline]
548 pub async fn wait_for_high<'a>(&mut self) { 548 pub async fn wait_for_high(&mut self) {
549 InputFuture::new(&mut self.pin, InterruptTrigger::LevelHigh).await; 549 InputFuture::new(&mut self.pin, InterruptTrigger::LevelHigh).await;
550 } 550 }
551 551
552 #[inline] 552 #[inline]
553 pub async fn wait_for_low<'a>(&mut self) { 553 pub async fn wait_for_low(&mut self) {
554 InputFuture::new(&mut self.pin, InterruptTrigger::LevelLow).await; 554 InputFuture::new(&mut self.pin, InterruptTrigger::LevelLow).await;
555 } 555 }
556 556
557 #[inline] 557 #[inline]
558 pub async fn wait_for_rising_edge<'a>(&mut self) { 558 pub async fn wait_for_rising_edge(&mut self) {
559 self.wait_for_low().await; 559 self.wait_for_low().await;
560 self.wait_for_high().await; 560 self.wait_for_high().await;
561 } 561 }
562 562
563 #[inline] 563 #[inline]
564 pub async fn wait_for_falling_edge<'a>(&mut self) { 564 pub async fn wait_for_falling_edge(&mut self) {
565 self.wait_for_high().await; 565 self.wait_for_high().await;
566 self.wait_for_low().await; 566 self.wait_for_low().await;
567 } 567 }
568 568
569 #[inline] 569 #[inline]
570 pub async fn wait_for_any_edge<'a>(&mut self) { 570 pub async fn wait_for_any_edge(&mut self) {
571 if self.is_high() { 571 if self.is_high() {
572 self.wait_for_low().await; 572 self.wait_for_low().await;
573 } else { 573 } else {