Skip to content

Commit 2432da0

Browse files
careyk007hannobraun
authored andcommitted
streamlining digital::v2 export
1 parent 6e37a07 commit 2432da0

File tree

11 files changed

+10
-13
lines changed

11 files changed

+10
-13
lines changed

boards/actinius-icarus/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use hal::{
2121
uarte::{self, Baudrate as UartBaudrate, Parity as UartParity, Uarte},
2222
};
2323

24-
use nrf9160_hal::hal::digital::v2::{InputPin, OutputPin};
24+
use hal::prelude::{OutputPin, InputPin};
2525

2626
pub use hal::pac;
2727

boards/adafruit-nrf52-bluefruit-le/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use nrf52832_hal::{
1010
uarte, Uarte,
1111
};
1212

13-
use nrf52832_hal::hal::digital::v2::OutputPin;
13+
use nrf52832_hal::prelude::OutputPin;
1414

1515
#[allow(non_snake_case)]
1616
pub struct Board {

boards/adafruit_nrf52pro/examples/blinky.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ use adafruit_nrf52pro_bsc::hal::{
1515
use adafruit_nrf52pro_bsc::nrf52832_pac::{Peripherals};
1616
use adafruit_nrf52pro_bsc::Pins;
1717

18-
use embedded_hal::digital::v2::OutputPin;
19-
20-
2118
#[entry]
2219
fn main() -> ! {
2320
let p = Peripherals::take().unwrap();

boards/adafruit_nrf52pro/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
pub use nrf52832_hal as hal;
33
use crate::hal::gpio::{p0, Floating, Input};
44
pub use crate::hal::nrf52832_pac;
5-
pub use nrf52832_hal::hal as embedded_hal;
65

76
/// Maps the pins to the names printed on the device
87
pub struct Pins {

boards/nRF52-DK/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use nrf52832_hal::{
3737
},
3838
};
3939

40-
use nrf52832_hal::hal::digital::v2::OutputPin;
40+
use nrf52832_hal::prelude::OutputPin;
4141

4242
/// Provides access to all features of the nRF52-DK board
4343
#[allow(non_snake_case)]

boards/nRF9160-DK/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use hal::{
1919
uarte::{self, Baudrate as UartBaudrate, Parity as UartParity, Uarte},
2020
};
2121

22-
use nrf9160_hal::hal::digital::v2::{InputPin, OutputPin};
22+
use hal::prelude::{OutputPin, InputPin};
2323

2424
pub use hal::pac;
2525

nrf52-hal-common/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![no_std]
22

3-
pub use embedded_hal as hal;
3+
use embedded_hal as hal;
44

55
#[cfg(feature = "52810")]
66
pub use nrf52810_pac as target;
@@ -31,6 +31,7 @@ pub mod uarte;
3131

3232
pub mod prelude {
3333
pub use crate::hal::prelude::*;
34+
pub use crate::hal::digital::v2::*;
3435

3536
pub use crate::time::U32Ext;
3637
}

nrf52810-hal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![no_std]
22

3-
pub use embedded_hal as hal;
3+
use embedded_hal as hal;
44
pub use nrf52810_pac;
55
pub use nrf52_hal_common::*;
66

nrf52832-hal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![no_std]
22

3-
pub use embedded_hal as hal;
3+
use embedded_hal as hal;
44
pub use nrf52832_pac;
55
pub use nrf52_hal_common::*;
66

nrf52840-hal/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#![no_std]
22

3-
pub use embedded_hal as hal;
3+
use embedded_hal as hal;
44
pub use nrf52840_pac;
55
pub use nrf52_hal_common::*;
66

0 commit comments

Comments
 (0)