Skip to content

Commit

Permalink
Fixup GPIOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jul 11, 2020
1 parent 619bee7 commit 0a94479
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions nrf-hal-common/src/gpiote.rs
Expand Up @@ -3,24 +3,24 @@
//! The GPIO tasks and events (GPIOTE) module provides functionality for accessing GPIO pins using tasks and events.

#[cfg(feature = "51")]
use crate::target::{gpio, GPIO as P0};
use crate::pac::GPIO as P0;

#[cfg(not(feature = "51"))]
use crate::target::{p0 as gpio, P0};
use crate::pac::P0;

#[cfg(any(feature = "52833", feature = "52840"))]
use crate::target::P1;
use crate::pac::P1;

use {
crate::gpio::{
Floating, Input, Level, OpenDrain, Output, Pin, Port, PullDown, PullUp, PushPull,
},
crate::target::gpiote::{_EVENTS_IN, _EVENTS_PORT, _TASKS_OUT},
crate::target::{generic::Reg, GPIOTE},
crate::pac::gpiote::{_EVENTS_IN, _EVENTS_PORT, _TASKS_OUT},
crate::pac::{generic::Reg, GPIOTE},
};

#[cfg(not(feature = "51"))]
use crate::target::gpiote::{_TASKS_CLR, _TASKS_SET};
use crate::pac::gpiote::{_TASKS_CLR, _TASKS_SET};

#[cfg(not(feature = "51"))]
const NUM_CHANNELS: usize = 8;
Expand Down

0 comments on commit 0a94479

Please sign in to comment.