aboutsummaryrefslogtreecommitdiff
path: root/tests/stm32/src/bin
diff options
context:
space:
mode:
authorxoviat <[email protected]>2023-06-21 21:50:12 +0000
committerGitHub <[email protected]>2023-06-21 21:50:12 +0000
commit1f2be2dac5eeed739d2866b9b63ca06fdd84c276 (patch)
treefd97bffac5ab4f754d9fd48d7ac8b95054a1d046 /tests/stm32/src/bin
parent2e625138ff8384a96f1f8a4d7a9c557b50353836 (diff)
parent5247c1c795a8b37be485aeeaa99a79eece678fba (diff)
Merge pull request #1569 from xoviat/tl-mbox-2
wpan: misc. cleanup and add mac
Diffstat (limited to 'tests/stm32/src/bin')
-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}