aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf-examples/src/bin/gpiote_port.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/embassy-nrf-examples/src/bin/gpiote_port.rs b/embassy-nrf-examples/src/bin/gpiote_port.rs
index b0e59ccce..0ec9e5d38 100644
--- a/embassy-nrf-examples/src/bin/gpiote_port.rs
+++ b/embassy-nrf-examples/src/bin/gpiote_port.rs
@@ -6,19 +6,17 @@
6 6
7#[path = "../example_common.rs"] 7#[path = "../example_common.rs"]
8mod example_common; 8mod example_common;
9use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull};
10use example_common::*; 9use example_common::*;
11use gpiote::PortInput;
12 10
13use core::pin::Pin; 11use core::pin::Pin;
14use cortex_m_rt::entry; 12use cortex_m_rt::entry;
15use defmt::panic; 13use defmt::panic;
16use nrf52840_hal::gpio;
17 14
18use embassy::executor::{task, Executor}; 15use embassy::executor::{task, Executor};
19use embassy::traits::gpio::{WaitForHigh, WaitForLow}; 16use embassy::traits::gpio::{WaitForHigh, WaitForLow};
20use embassy::util::Forever; 17use embassy::util::Forever;
21use embassy_nrf::gpiote; 18use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull};
19use embassy_nrf::gpiote::{self, PortInput};
22use embassy_nrf::interrupt; 20use embassy_nrf::interrupt;
23 21
24async fn button(n: usize, mut pin: PortInput<AnyPin>) { 22async fn button(n: usize, mut pin: PortInput<AnyPin>) {