diff options
| author | xoviat <[email protected]> | 2023-06-18 18:51:14 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-06-18 18:51:14 -0500 |
| commit | b95c0210b83d0742fa4663b2726e4e7b82a4e068 (patch) | |
| tree | f088a1d83cd416807079330515ae7514c3e10991 /embassy-stm32-wpan/src/lib.rs | |
| parent | 9f63158aad81486b4bd0ffe6f8d7103458ba360f (diff) | |
stm32/wpan: add draft mac mbox
Diffstat (limited to 'embassy-stm32-wpan/src/lib.rs')
| -rw-r--r-- | embassy-stm32-wpan/src/lib.rs | 12 |
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; | |||
| 6 | use core::mem::MaybeUninit; | 6 | use core::mem::MaybeUninit; |
| 7 | use core::sync::atomic::{compiler_fence, Ordering}; | 7 | use core::sync::atomic::{compiler_fence, Ordering}; |
| 8 | 8 | ||
| 9 | use ble::Ble; | ||
| 10 | use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; | 9 | use embassy_hal_common::{into_ref, Peripheral, PeripheralRef}; |
| 11 | use embassy_stm32::interrupt; | 10 | use embassy_stm32::interrupt; |
| 12 | use embassy_stm32::ipcc::{Config, Ipcc, ReceiveInterruptHandler, TransmitInterruptHandler}; | 11 | use embassy_stm32::ipcc::{Config, Ipcc, ReceiveInterruptHandler, TransmitInterruptHandler}; |
| @@ -16,11 +15,14 @@ use sys::Sys; | |||
| 16 | use tables::*; | 15 | use tables::*; |
| 17 | use unsafe_linked_list::LinkedListNode; | 16 | use unsafe_linked_list::LinkedListNode; |
| 18 | 17 | ||
| 18 | #[cfg(feature = "ble")] | ||
| 19 | pub mod ble; | 19 | pub mod ble; |
| 20 | pub mod channels; | 20 | pub mod channels; |
| 21 | pub mod cmd; | 21 | pub mod cmd; |
| 22 | pub mod consts; | 22 | pub mod consts; |
| 23 | pub mod evt; | 23 | pub mod evt; |
| 24 | #[cfg(feature = "mac")] | ||
| 25 | pub mod mac; | ||
| 24 | pub mod mm; | 26 | pub mod mm; |
| 25 | pub mod shci; | 27 | pub mod shci; |
| 26 | pub mod sys; | 28 | pub 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 | ||
| 40 | impl<'d> TlMbox<'d> { | 45 | impl<'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 | } |
