Fixed nrf51 radio build
This commit is contained in:
parent
bc258b322b
commit
5408f21e99
2 changed files with 3 additions and 1 deletions
|
@ -47,7 +47,7 @@ pub mod gpio;
|
||||||
pub mod gpiote;
|
pub mod gpiote;
|
||||||
|
|
||||||
// TODO: tested on other chips
|
// TODO: tested on other chips
|
||||||
#[cfg(not(any(feature = "nrf51", feature = "_nrf9160")))]
|
#[cfg(not(any(feature = "_nrf9160")))]
|
||||||
pub mod radio;
|
pub mod radio;
|
||||||
|
|
||||||
#[cfg(any(feature = "nrf52832", feature = "nrf52833", feature = "nrf52840"))]
|
#[cfg(any(feature = "nrf52832", feature = "nrf52833", feature = "nrf52840"))]
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#![macro_use]
|
#![macro_use]
|
||||||
|
|
||||||
/// Bluetooth Low Energy Radio driver.
|
/// Bluetooth Low Energy Radio driver.
|
||||||
|
#[cfg(not(feature = "nrf51"))]
|
||||||
pub mod ble;
|
pub mod ble;
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
feature = "nrf52820",
|
feature = "nrf52820",
|
||||||
|
@ -19,6 +20,7 @@ pub mod ieee802154;
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
|
|
||||||
use pac::radio::state::STATE_A as RadioState;
|
use pac::radio::state::STATE_A as RadioState;
|
||||||
|
#[cfg(not(feature = "nrf51"))]
|
||||||
use pac::radio::txpower::TXPOWER_A as TxPower;
|
use pac::radio::txpower::TXPOWER_A as TxPower;
|
||||||
|
|
||||||
use crate::{interrupt, pac, Peripheral};
|
use crate::{interrupt, pac, Peripheral};
|
||||||
|
|
Loading…
Reference in a new issue