aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32-wpan/src/lib.rs
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-18 18:51:14 -0500
committerxoviat <[email protected]>2023-06-18 18:51:14 -0500
commitb95c0210b83d0742fa4663b2726e4e7b82a4e068 (patch)
treef088a1d83cd416807079330515ae7514c3e10991 /embassy-stm32-wpan/src/lib.rs
parent9f63158aad81486b4bd0ffe6f8d7103458ba360f (diff)
stm32/wpan: add draft mac mbox
Diffstat (limited to 'embassy-stm32-wpan/src/lib.rs')
-rw-r--r--embassy-stm32-wpan/src/lib.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/embassy-stm32-wpan/src/lib.rs b/embassy-stm32-wpan/src/lib.rs
index 1ddb3f2e0..5aec9933c 100644
--- a/embassy-stm32-wpan/src/lib.rs
+++ b/embassy-stm32-wpan/src/lib.rs
@@ -6,7 +6,6 @@ pub mod fmt;
6use core::mem::MaybeUninit; 6use core::mem::MaybeUninit;
7use core::sync::atomic::{compiler_fence, Ordering}; 7use core::sync::atomic::{compiler_fence, Ordering};
8 8
9use ble::Ble;
10use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; 9use embassy_hal_common::{into_ref, Peripheral, PeripheralRef};
11use embassy_stm32::interrupt; 10use embassy_stm32::interrupt;
12use embassy_stm32::ipcc::{Config, Ipcc, ReceiveInterruptHandler, TransmitInterruptHandler}; 11use embassy_stm32::ipcc::{Config, Ipcc, ReceiveInterruptHandler, TransmitInterruptHandler};
@@ -16,11 +15,14 @@ use sys::Sys;
16use tables::*; 15use tables::*;
17use unsafe_linked_list::LinkedListNode; 16use unsafe_linked_list::LinkedListNode;
18 17
18#[cfg(feature = "ble")]
19pub mod ble; 19pub mod ble;
20pub mod channels; 20pub mod channels;
21pub mod cmd; 21pub mod cmd;
22pub mod consts; 22pub mod consts;
23pub mod evt; 23pub mod evt;
24#[cfg(feature = "mac")]
25pub mod mac;
24pub mod mm; 26pub mod mm;
25pub mod shci; 27pub mod shci;
26pub mod sys; 28pub mod sys;
@@ -34,7 +36,10 @@ pub struct TlMbox<'d> {
34 36
35 pub sys_subsystem: Sys, 37 pub sys_subsystem: Sys,
36 pub mm_subsystem: MemoryManager, 38 pub mm_subsystem: MemoryManager,
37 pub ble_subsystem: Ble, 39 #[cfg(feature = "ble")]
40 pub ble_subsystem: ble::Ble,
41 #[cfg(feature = "mac")]
42 pub mac_subsystem: mac::Mac,
38} 43}
39 44
40impl<'d> TlMbox<'d> { 45impl<'d> TlMbox<'d> {
@@ -122,7 +127,10 @@ impl<'d> TlMbox<'d> {
122 Self { 127 Self {
123 _ipcc: ipcc, 128 _ipcc: ipcc,
124 sys_subsystem: sys::Sys::new(), 129 sys_subsystem: sys::Sys::new(),
130 #[cfg(feature = "ble")]
125 ble_subsystem: ble::Ble::new(), 131 ble_subsystem: ble::Ble::new(),
132 #[cfg(feature = "mac")]
133 mac_subsystem: mac::Mac::new(),
126 mm_subsystem: mm::MemoryManager::new(), 134 mm_subsystem: mm::MemoryManager::new(),
127 } 135 }
128 } 136 }