aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-nrf/src')
-rw-r--r--embassy-nrf/src/gpiote.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index 412eef1b5..ead3c47d3 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -1,7 +1,6 @@
1use core::convert::Infallible; 1use core::convert::Infallible;
2use core::future::Future; 2use core::future::Future;
3use core::marker::PhantomData; 3use core::marker::PhantomData;
4use core::pin::Pin;
5use core::task::{Context, Poll}; 4use core::task::{Context, Poll};
6use embassy::interrupt::InterruptExt; 5use embassy::interrupt::InterruptExt;
7use embassy::traits::gpio::{WaitForHigh, WaitForLow}; 6use embassy::traits::gpio::{WaitForHigh, WaitForLow};
@@ -318,7 +317,7 @@ impl<'d, T: GpioPin> InputPin for PortInput<'d, T> {
318impl<'d, T: GpioPin> WaitForHigh for PortInput<'d, T> { 317impl<'d, T: GpioPin> WaitForHigh for PortInput<'d, T> {
319 type Future<'a> = PortInputFuture<'a>; 318 type Future<'a> = PortInputFuture<'a>;
320 319
321 fn wait_for_high<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a> { 320 fn wait_for_high<'a>(&'a mut self) -> Self::Future<'a> {
322 self.pin.pin.conf().modify(|_, w| w.sense().high()); 321 self.pin.pin.conf().modify(|_, w| w.sense().high());
323 322
324 PortInputFuture { 323 PortInputFuture {
@@ -331,7 +330,7 @@ impl<'d, T: GpioPin> WaitForHigh for PortInput<'d, T> {
331impl<'d, T: GpioPin> WaitForLow for PortInput<'d, T> { 330impl<'d, T: GpioPin> WaitForLow for PortInput<'d, T> {
332 type Future<'a> = PortInputFuture<'a>; 331 type Future<'a> = PortInputFuture<'a>;
333 332
334 fn wait_for_low<'a>(self: Pin<&'a mut Self>) -> Self::Future<'a> { 333 fn wait_for_low<'a>(&'a mut self) -> Self::Future<'a> {
335 self.pin.pin.conf().modify(|_, w| w.sense().low()); 334 self.pin.pin.conf().modify(|_, w| w.sense().low());
336 335
337 PortInputFuture { 336 PortInputFuture {