Fixed nrf51 radio build

This commit is contained in:
Erik Bånvik 2024-03-05 11:47:06 +01:00
parent bc258b322b
commit 5408f21e99
2 changed files with 3 additions and 1 deletions

View File

@ -47,7 +47,7 @@ pub mod gpio;
pub mod gpiote;
// TODO: tested on other chips
#[cfg(not(any(feature = "nrf51", feature = "_nrf9160")))]
#[cfg(not(any(feature = "_nrf9160")))]
pub mod radio;
#[cfg(any(feature = "nrf52832", feature = "nrf52833", feature = "nrf52840"))]

View File

@ -6,6 +6,7 @@
#![macro_use]
/// Bluetooth Low Energy Radio driver.
#[cfg(not(feature = "nrf51"))]
pub mod ble;
#[cfg(any(
feature = "nrf52820",
@ -19,6 +20,7 @@ pub mod ieee802154;
use core::marker::PhantomData;
use pac::radio::state::STATE_A as RadioState;
#[cfg(not(feature = "nrf51"))]
use pac::radio::txpower::TXPOWER_A as TxPower;
use crate::{interrupt, pac, Peripheral};