mac: move table initialization after sys ready

This commit is contained in:
xoviat
2023-07-09 16:01:13 -05:00
parent 735d676a72
commit c1bf5aee24
3 changed files with 30 additions and 9 deletions

View File

@@ -25,14 +25,6 @@ pub struct Mac {
impl Mac {
pub(crate) fn new() -> Self {
unsafe {
TL_MAC_802_15_4_TABLE.as_mut_ptr().write_volatile(Mac802_15_4Table {
p_cmdrsp_buffer: MAC_802_15_4_CMD_BUFFER.as_mut_ptr().cast(),
p_notack_buffer: MAC_802_15_4_NOTIF_RSP_EVT_BUFFER.as_mut_ptr().cast(),
evt_queue: ptr::null_mut(),
});
}
Self { phantom: PhantomData }
}