aboutsummaryrefslogtreecommitdiff
path: root/embassy-nrf/src/radio/mod.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2025-05-01 14:35:46 +0200
committerDario Nieuwenhuis <[email protected]>2025-05-01 15:33:02 +0200
commitdf84dfec7a55bed44ad5609511e4a2f596a156af (patch)
tree0e4d4c3a9ac450480a6e4850e113d0f0f05e0963 /embassy-nrf/src/radio/mod.rs
parent52e4c7c30c5f59d10afbef2447b96da68f4be0bc (diff)
Remove embassy_nrf::radio::ble.
Fixes #4144
Diffstat (limited to 'embassy-nrf/src/radio/mod.rs')
-rw-r--r--embassy-nrf/src/radio/mod.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/embassy-nrf/src/radio/mod.rs b/embassy-nrf/src/radio/mod.rs
index 982436266..608ef9024 100644
--- a/embassy-nrf/src/radio/mod.rs
+++ b/embassy-nrf/src/radio/mod.rs
@@ -6,7 +6,6 @@
6#![macro_use] 6#![macro_use]
7 7
8/// Bluetooth Low Energy Radio driver. 8/// Bluetooth Low Energy Radio driver.
9pub mod ble;
10#[cfg(any( 9#[cfg(any(
11 feature = "nrf52811", 10 feature = "nrf52811",
12 feature = "nrf52820", 11 feature = "nrf52820",
@@ -21,7 +20,6 @@ use core::marker::PhantomData;
21 20
22use embassy_hal_internal::PeripheralType; 21use embassy_hal_internal::PeripheralType;
23use embassy_sync::waitqueue::AtomicWaker; 22use embassy_sync::waitqueue::AtomicWaker;
24use pac::radio::vals::State as RadioState;
25pub use pac::radio::vals::Txpower as TxPower; 23pub use pac::radio::vals::Txpower as TxPower;
26 24
27use crate::{interrupt, pac}; 25use crate::{interrupt, pac};
@@ -82,6 +80,7 @@ macro_rules! impl_radio {
82 pac::$pac_type 80 pac::$pac_type
83 } 81 }
84 82
83 #[allow(unused)]
85 fn state() -> &'static crate::radio::State { 84 fn state() -> &'static crate::radio::State {
86 static STATE: crate::radio::State = crate::radio::State::new(); 85 static STATE: crate::radio::State = crate::radio::State::new();
87 &STATE 86 &STATE
@@ -99,8 +98,3 @@ pub trait Instance: SealedInstance + PeripheralType + 'static + Send {
99 /// Interrupt for this peripheral. 98 /// Interrupt for this peripheral.
100 type Interrupt: interrupt::typelevel::Interrupt; 99 type Interrupt: interrupt::typelevel::Interrupt;
101} 100}
102
103/// Get the state of the radio
104pub(crate) fn state(radio: pac::radio::Radio) -> RadioState {
105 radio.state().read().state()
106}