summaryrefslogtreecommitdiff
path: root/embassy-nrf/src/gpiote.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-13 07:22:04 +0000
committerGitHub <noreply@github.com>2022-06-13 07:22:04 +0000
commitdb685c04049449ac3e4f256f2e7e26dad550d94c (patch)
treef4ec5de70ec05e793a774049e010935ac45853ed /embassy-nrf/src/gpiote.rs
parentfff0a03fe0f9e84209dd40fd8f93790871d03d75 (diff)
parenta8703b75988e1e700af701116464025679d2feb8 (diff)
downloadembassy-db685c04049449ac3e4f256f2e7e26dad550d94c.zip
Merge #808
808: Add rustfmt.toml with some nice settings. r=lulf a=Dirbaio Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
Diffstat (limited to 'embassy-nrf/src/gpiote.rs')
-rw-r--r--embassy-nrf/src/gpiote.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/embassy-nrf/src/gpiote.rs b/embassy-nrf/src/gpiote.rs
index 05154623..d4e1cb35 100644
--- a/embassy-nrf/src/gpiote.rs
+++ b/embassy-nrf/src/gpiote.rs
@@ -1,17 +1,17 @@
-use crate::interrupt::{Interrupt, InterruptExt};
use core::convert::Infallible;
use core::future::Future;
use core::marker::PhantomData;
use core::task::{Context, Poll};
+
use embassy::waitqueue::AtomicWaker;
use embassy_hal_common::unsafe_impl_unborrow;
use futures::future::poll_fn;
use crate::gpio::sealed::Pin as _;
use crate::gpio::{AnyPin, Flex, Input, Output, Pin as GpioPin};
-use crate::pac;
+use crate::interrupt::{Interrupt, InterruptExt};
use crate::ppi::{Event, Task};
-use crate::{interrupt, peripherals};
+use crate::{interrupt, pac, peripherals};
pub const CHANNEL_COUNT: usize = 8;
@@ -468,9 +468,7 @@ mod eh1 {
type Error = Infallible;
}
- impl<'d, C: Channel, T: GpioPin> embedded_hal_1::digital::blocking::InputPin
- for InputChannel<'d, C, T>
- {
+ impl<'d, C: Channel, T: GpioPin> embedded_hal_1::digital::blocking::InputPin for InputChannel<'d, C, T> {
fn is_high(&self) -> Result<bool, Self::Error> {
Ok(self.pin.is_high())
}