diff options
| author | Dario Nieuwenhuis <[email protected]> | 2021-03-21 21:03:02 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2021-03-29 00:58:57 +0200 |
| commit | 90a2b823a4da6ff71b835e97eee8b4f7a91d3758 (patch) | |
| tree | c0eeef465eba571743698e3d5d36ca7ee29fb5bf | |
| parent | 95218bf8d4a49121e94d6290b8cdb4129a9ea0b8 (diff) | |
nrf/gpiote: cleanup imports
| -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>) { |
