Skip to content

Commit ff3c836

Browse files
Jonathan Pallant (42 Technology)Yatekii
authored andcommitted
Export bsp as 'bsp' and pac as 'pac'.
1 parent 49e2922 commit ff3c836

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

boards/nRF9160-DK/examples/blinky.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
extern crate cortex_m_rt as rt;
55
extern crate nb;
6-
extern crate nrf9160_dk_bsp as dk;
6+
extern crate nrf9160_dk_bsp as bsp;
77
extern crate panic_semihosting;
88

99
use core::fmt::Write;
10-
use dk::{hal::Timer, prelude::*, Board};
10+
use bsp::{hal::Timer, prelude::*, Board};
1111
use nb::block;
1212
use rt::entry;
1313

boards/nRF9160-DK/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ pub mod prelude {
1515

1616
use hal::{
1717
gpio::{p0, Floating, Input, Level, Output, Pin, PullUp, PushPull},
18-
nrf9160_pac::{self as pac, CorePeripherals, Peripherals},
18+
pac::{CorePeripherals, Peripherals},
1919
prelude::*,
2020
uarte::{self, Baudrate as UartBaudrate, Parity as UartParity, Uarte},
2121
};
2222

23+
pub use hal::pac;
24+
2325
/// Provides access to all features of the nRF9160-DK board
2426
#[allow(non_snake_case)]
2527
pub struct Board {

nrf9160-hal/src/lib.rs

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

33
use embedded_hal as hal;
4-
pub use nrf9160_pac;
4+
pub use nrf9160_pac as pac;
55
pub use nrf52_hal_common::*;
66

77
pub mod prelude {

0 commit comments

Comments
 (0)