rp/gpio: remove unused lifetimes.
This commit is contained in:
parent
ba67f6d3a8
commit
89e2e25d6f
@ -85,27 +85,27 @@ impl<'d, T: Pin> Input<'d, T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_high<'a>(&mut self) {
|
pub async fn wait_for_high(&mut self) {
|
||||||
self.pin.wait_for_high().await;
|
self.pin.wait_for_high().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_low<'a>(&mut self) {
|
pub async fn wait_for_low(&mut self) {
|
||||||
self.pin.wait_for_low().await;
|
self.pin.wait_for_low().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_rising_edge<'a>(&mut self) {
|
pub async fn wait_for_rising_edge(&mut self) {
|
||||||
self.pin.wait_for_rising_edge().await;
|
self.pin.wait_for_rising_edge().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_falling_edge<'a>(&mut self) {
|
pub async fn wait_for_falling_edge(&mut self) {
|
||||||
self.pin.wait_for_falling_edge().await;
|
self.pin.wait_for_falling_edge().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_any_edge<'a>(&mut self) {
|
pub async fn wait_for_any_edge(&mut self) {
|
||||||
self.pin.wait_for_any_edge().await;
|
self.pin.wait_for_any_edge().await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -545,29 +545,29 @@ impl<'d, T: Pin> Flex<'d, T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_high<'a>(&mut self) {
|
pub async fn wait_for_high(&mut self) {
|
||||||
InputFuture::new(&mut self.pin, InterruptTrigger::LevelHigh).await;
|
InputFuture::new(&mut self.pin, InterruptTrigger::LevelHigh).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_low<'a>(&mut self) {
|
pub async fn wait_for_low(&mut self) {
|
||||||
InputFuture::new(&mut self.pin, InterruptTrigger::LevelLow).await;
|
InputFuture::new(&mut self.pin, InterruptTrigger::LevelLow).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_rising_edge<'a>(&mut self) {
|
pub async fn wait_for_rising_edge(&mut self) {
|
||||||
self.wait_for_low().await;
|
self.wait_for_low().await;
|
||||||
self.wait_for_high().await;
|
self.wait_for_high().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_falling_edge<'a>(&mut self) {
|
pub async fn wait_for_falling_edge(&mut self) {
|
||||||
self.wait_for_high().await;
|
self.wait_for_high().await;
|
||||||
self.wait_for_low().await;
|
self.wait_for_low().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub async fn wait_for_any_edge<'a>(&mut self) {
|
pub async fn wait_for_any_edge(&mut self) {
|
||||||
if self.is_high() {
|
if self.is_high() {
|
||||||
self.wait_for_low().await;
|
self.wait_for_low().await;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user