aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/stm32/src/bin/tl_mbox.rs21
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/stm32/src/bin/tl_mbox.rs b/tests/stm32/src/bin/tl_mbox.rs
index 76c736a5b..af3832709 100644
--- a/tests/stm32/src/bin/tl_mbox.rs
+++ b/tests/stm32/src/bin/tl_mbox.rs
@@ -12,17 +12,18 @@ use common::*;
12use embassy_executor::Spawner; 12use embassy_executor::Spawner;
13use embassy_stm32::bind_interrupts; 13use embassy_stm32::bind_interrupts;
14use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler}; 14use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler};
15use embassy_stm32_wpan::ble::hci::host::uart::UartHci; 15use embassy_stm32_wpan::hci::host::uart::UartHci;
16use embassy_stm32_wpan::ble::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; 16use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType};
17use embassy_stm32_wpan::ble::hci::types::AdvertisingType; 17use embassy_stm32_wpan::hci::types::AdvertisingType;
18use embassy_stm32_wpan::ble::hci::vendor::stm32wb::command::gap::{ 18use embassy_stm32_wpan::hci::vendor::stm32wb::command::gap::{
19 AdvertisingDataType, DiscoverableParameters, GapCommands, Role, 19 AdvertisingDataType, DiscoverableParameters, GapCommands, Role,
20}; 20};
21use embassy_stm32_wpan::ble::hci::vendor::stm32wb::command::gatt::GattCommands; 21use embassy_stm32_wpan::hci::vendor::stm32wb::command::gatt::GattCommands;
22use embassy_stm32_wpan::ble::hci::vendor::stm32wb::command::hal::{ConfigData, HalCommands, PowerLevel}; 22use embassy_stm32_wpan::hci::vendor::stm32wb::command::hal::{ConfigData, HalCommands, PowerLevel};
23use embassy_stm32_wpan::ble::hci::BdAddr; 23use embassy_stm32_wpan::hci::BdAddr;
24use embassy_stm32_wpan::lhci::LhciC1DeviceInformationCcrp; 24use embassy_stm32_wpan::lhci::LhciC1DeviceInformationCcrp;
25use embassy_stm32_wpan::{mm, TlMbox}; 25use embassy_stm32_wpan::sub::mm;
26use embassy_stm32_wpan::TlMbox;
26use {defmt_rtt as _, panic_probe as _}; 27use {defmt_rtt as _, panic_probe as _};
27 28
28bind_interrupts!(struct Irqs{ 29bind_interrupts!(struct Irqs{
@@ -38,14 +39,14 @@ async fn run_mm_queue(memory_manager: mm::MemoryManager) {
38} 39}
39 40
40#[embassy_executor::main] 41#[embassy_executor::main]
41async fn main(_spawner: Spawner) { 42async fn main(spawner: Spawner) {
42 let p = embassy_stm32::init(config()); 43 let p = embassy_stm32::init(config());
43 info!("Hello World!"); 44 info!("Hello World!");
44 45
45 let config = Config::default(); 46 let config = Config::default();
46 let mut mbox = TlMbox::init(p.IPCC, Irqs, config); 47 let mut mbox = TlMbox::init(p.IPCC, Irqs, config);
47 48
48 // spawner.spawn(run_mm_queue(mbox.mm_subsystem)).unwrap(); 49 spawner.spawn(run_mm_queue(mbox.mm_subsystem)).unwrap();
49 50
50 let sys_event = mbox.sys_subsystem.read().await; 51 let sys_event = mbox.sys_subsystem.read().await;
51 info!("sys event: {}", sys_event.payload()); 52 info!("sys event: {}", sys_event.payload());