aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-18 08:37:26 -0500
committerxoviat <[email protected]>2023-06-18 08:37:26 -0500
commit7177e7ea1aae2eb6973816a158e714b4fcd5b9a6 (patch)
treee295ca183b78d18a1ec414cd8c0cf977fc83cee8 /tests/stm32
parentadaed307b4d81ed09611e496524b1d96ad04c60d (diff)
stm32/wpan: cleanup and expand shci
Diffstat (limited to 'tests/stm32')
-rw-r--r--tests/stm32/src/bin/tl_mbox.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/stm32/src/bin/tl_mbox.rs b/tests/stm32/src/bin/tl_mbox.rs
index f6641ae31..f47a89b6f 100644
--- a/tests/stm32/src/bin/tl_mbox.rs
+++ b/tests/stm32/src/bin/tl_mbox.rs
@@ -39,7 +39,7 @@ async fn main(spawner: Spawner) {
39 let ready_event = mbox.sys_subsystem.read().await; 39 let ready_event = mbox.sys_subsystem.read().await;
40 let _ = poll_once(mbox.sys_subsystem.read()); // clear rx not 40 let _ = poll_once(mbox.sys_subsystem.read()); // clear rx not
41 41
42 info!("coprocessor ready {}", ready_event.payload()); 42 info!("sys event {:x} : {:x}", ready_event.stub().kind, ready_event.payload());
43 43
44 // test memory manager 44 // test memory manager
45 mem::drop(ready_event); 45 mem::drop(ready_event);
@@ -59,7 +59,8 @@ async fn main(spawner: Spawner) {
59 59
60 Timer::after(Duration::from_millis(50)).await; 60 Timer::after(Duration::from_millis(50)).await;
61 61
62 mbox.sys_subsystem.shci_c2_ble_init(Default::default()).await; 62 let result = mbox.sys_subsystem.shci_c2_ble_init(Default::default()).await;
63 info!("subsystem initialization: {}", result);
63 64
64 info!("starting ble..."); 65 info!("starting ble...");
65 mbox.ble_subsystem.write(0x0c, &[]).await; 66 mbox.ble_subsystem.write(0x0c, &[]).await;
@@ -67,9 +68,8 @@ async fn main(spawner: Spawner) {
67 info!("waiting for ble..."); 68 info!("waiting for ble...");
68 let ble_event = mbox.ble_subsystem.read().await; 69 let ble_event = mbox.ble_subsystem.read().await;
69 70
70 info!("ble event: {}", ble_event.payload()); 71 info!("ble event {:x} : {:x}", ble_event.stub().kind, ble_event.payload());
71 72
72 Timer::after(Duration::from_millis(150)).await;
73 info!("Test OK"); 73 info!("Test OK");
74 cortex_m::asm::bkpt(); 74 cortex_m::asm::bkpt();
75} 75}