stm32/wpan: add draft mac mbox

This commit is contained in:
xoviat
2023-06-18 18:51:14 -05:00
parent 9f63158aad
commit b95c0210b8
9 changed files with 223 additions and 7 deletions

View File

@ -1,7 +1,6 @@
use core::{ptr, slice};
use super::PacketHeader;
use crate::mm;
/**
* The payload of `Evt` for a command status event
@ -129,6 +128,18 @@ impl EvtBox {
impl Drop for EvtBox {
fn drop(&mut self) {
unsafe { mm::MemoryManager::drop_event_packet(self.ptr) };
#[cfg(feature = "ble")]
unsafe {
use crate::mm;
mm::MemoryManager::drop_event_packet(self.ptr)
};
#[cfg(feature = "mac")]
unsafe {
use crate::mac;
mac::Mac::drop_event_packet(self.ptr)
}
}
}