diff options
| -rw-r--r-- | embassy-nrf-examples/src/bin/gpiote_port.rs | 6 |
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"] |
| 8 | mod example_common; | 8 | mod example_common; |
| 9 | use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; | ||
| 10 | use example_common::*; | 9 | use example_common::*; |
| 11 | use gpiote::PortInput; | ||
| 12 | 10 | ||
| 13 | use core::pin::Pin; | 11 | use core::pin::Pin; |
| 14 | use cortex_m_rt::entry; | 12 | use cortex_m_rt::entry; |
| 15 | use defmt::panic; | 13 | use defmt::panic; |
| 16 | use nrf52840_hal::gpio; | ||
| 17 | 14 | ||
| 18 | use embassy::executor::{task, Executor}; | 15 | use embassy::executor::{task, Executor}; |
| 19 | use embassy::traits::gpio::{WaitForHigh, WaitForLow}; | 16 | use embassy::traits::gpio::{WaitForHigh, WaitForLow}; |
| 20 | use embassy::util::Forever; | 17 | use embassy::util::Forever; |
| 21 | use embassy_nrf::gpiote; | 18 | use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull}; |
| 19 | use embassy_nrf::gpiote::{self, PortInput}; | ||
| 22 | use embassy_nrf::interrupt; | 20 | use embassy_nrf::interrupt; |
| 23 | 21 | ||
| 24 | async fn button(n: usize, mut pin: PortInput<AnyPin>) { | 22 | async fn button(n: usize, mut pin: PortInput<AnyPin>) { |
