aboutsummaryrefslogtreecommitdiff
path: root/embassy-traits/src/gpio.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-traits/src/gpio.rs')
-rw-r--r--embassy-traits/src/gpio.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/embassy-traits/src/gpio.rs b/embassy-traits/src/gpio.rs
index 9fdb41f56..b8f31fc6c 100644
--- a/embassy-traits/src/gpio.rs
+++ b/embassy-traits/src/gpio.rs
@@ -8,7 +8,7 @@ pub trait WaitForHigh {
8 /// 8 ///
9 /// If the pin is already high, the future completes immediately. 9 /// If the pin is already high, the future completes immediately.
10 /// Otherwise, it completes when it becomes high. 10 /// Otherwise, it completes when it becomes high.
11 fn wait_for_high<'a>(&'a mut self) -> Self::Future<'a>; 11 fn wait_for_high(&mut self) -> Self::Future<'_>;
12} 12}
13 13
14/// Wait for a pin to become low. 14/// Wait for a pin to become low.
@@ -19,7 +19,7 @@ pub trait WaitForLow {
19 /// 19 ///
20 /// If the pin is already low, the future completes immediately. 20 /// If the pin is already low, the future completes immediately.
21 /// Otherwise, it completes when it becomes low. 21 /// Otherwise, it completes when it becomes low.
22 fn wait_for_low<'a>(&'a mut self) -> Self::Future<'a>; 22 fn wait_for_low(&mut self) -> Self::Future<'_>;
23} 23}
24 24
25/// Wait for a rising edge (transition from low to high) 25/// Wait for a rising edge (transition from low to high)
@@ -27,7 +27,7 @@ pub trait WaitForRisingEdge {
27 type Future<'a>: Future<Output = ()> + 'a; 27 type Future<'a>: Future<Output = ()> + 'a;
28 28
29 /// Wait for a rising edge (transition from low to high) 29 /// Wait for a rising edge (transition from low to high)
30 fn wait_for_rising_edge<'a>(&'a mut self) -> Self::Future<'a>; 30 fn wait_for_rising_edge(&mut self) -> Self::Future<'_>;
31} 31}
32 32
33/// Wait for a falling edge (transition from high to low) 33/// Wait for a falling edge (transition from high to low)
@@ -35,7 +35,7 @@ pub trait WaitForFallingEdge {
35 type Future<'a>: Future<Output = ()> + 'a; 35 type Future<'a>: Future<Output = ()> + 'a;
36 36
37 /// Wait for a falling edge (transition from high to low) 37 /// Wait for a falling edge (transition from high to low)
38 fn wait_for_falling_edge<'a>(&'a mut self) -> Self::Future<'a>; 38 fn wait_for_falling_edge(&'_ mut self) -> Self::Future<'_>;
39} 39}
40 40
41/// Wait for any edge (any transition, high to low or low to high) 41/// Wait for any edge (any transition, high to low or low to high)
@@ -43,5 +43,5 @@ pub trait WaitForAnyEdge {
43 type Future<'a>: Future<Output = ()> + 'a; 43 type Future<'a>: Future<Output = ()> + 'a;
44 44
45 /// Wait for any edge (any transition, high to low or low to high) 45 /// Wait for any edge (any transition, high to low or low to high)
46 fn wait_for_any_edge<'a>(&'a mut self) -> Self::Future<'a>; 46 fn wait_for_any_edge(&mut self) -> Self::Future<'_>;
47} 47}