mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Fixed nrf51 radio build
This commit is contained in:
parent
bc258b322b
commit
5408f21e99
@ -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"))]
|
||||
|
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user