stm32: misc. cleanup

This commit is contained in:
xoviat
2023-09-17 18:47:22 -05:00
parent a6ef314be1
commit feaeee1e83
5 changed files with 14 additions and 17 deletions

View File

@ -1,5 +1,4 @@
use core::future::poll_fn;
use core::marker::PhantomData;
use core::ptr;
use core::sync::atomic::{AtomicBool, Ordering};
use core::task::Poll;
@ -21,12 +20,12 @@ static MAC_WAKER: AtomicWaker = AtomicWaker::new();
static MAC_EVT_OUT: AtomicBool = AtomicBool::new(false);
pub struct Mac {
phantom: PhantomData<Mac>,
_private: (),
}
impl Mac {
pub(crate) fn new() -> Self {
Self { phantom: PhantomData }
Self { _private: () }
}
/// `HW_IPCC_MAC_802_15_4_EvtNot`