nrf/gpiote: cleanup imports
This commit is contained in:
parent
95218bf8d4
commit
90a2b823a4
1 changed files with 2 additions and 4 deletions
|
@ -6,19 +6,17 @@
|
||||||
|
|
||||||
#[path = "../example_common.rs"]
|
#[path = "../example_common.rs"]
|
||||||
mod example_common;
|
mod example_common;
|
||||||
use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull};
|
|
||||||
use example_common::*;
|
use example_common::*;
|
||||||
use gpiote::PortInput;
|
|
||||||
|
|
||||||
use core::pin::Pin;
|
use core::pin::Pin;
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use defmt::panic;
|
use defmt::panic;
|
||||||
use nrf52840_hal::gpio;
|
|
||||||
|
|
||||||
use embassy::executor::{task, Executor};
|
use embassy::executor::{task, Executor};
|
||||||
use embassy::traits::gpio::{WaitForHigh, WaitForLow};
|
use embassy::traits::gpio::{WaitForHigh, WaitForLow};
|
||||||
use embassy::util::Forever;
|
use embassy::util::Forever;
|
||||||
use embassy_nrf::gpiote;
|
use embassy_nrf::gpio::{AnyPin, Input, Pin as _, Pull};
|
||||||
|
use embassy_nrf::gpiote::{self, PortInput};
|
||||||
use embassy_nrf::interrupt;
|
use embassy_nrf::interrupt;
|
||||||
|
|
||||||
async fn button(n: usize, mut pin: PortInput<AnyPin>) {
|
async fn button(n: usize, mut pin: PortInput<AnyPin>) {
|
||||||
|
|
Loading…
Reference in a new issue