diff options
| author | xoviat <[email protected]> | 2023-06-21 21:50:12 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-21 21:50:12 +0000 |
| commit | 1f2be2dac5eeed739d2866b9b63ca06fdd84c276 (patch) | |
| tree | fd97bffac5ab4f754d9fd48d7ac8b95054a1d046 /tests | |
| parent | 2e625138ff8384a96f1f8a4d7a9c557b50353836 (diff) | |
| parent | 5247c1c795a8b37be485aeeaa99a79eece678fba (diff) | |
Merge pull request #1569 from xoviat/tl-mbox-2
wpan: misc. cleanup and add mac
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/stm32/Cargo.toml | 2 | ||||
| -rw-r--r-- | tests/stm32/src/bin/tl_mbox.rs | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/stm32/Cargo.toml b/tests/stm32/Cargo.toml index 365f631b7..fe646927a 100644 --- a/tests/stm32/Cargo.toml +++ b/tests/stm32/Cargo.toml | |||
| @@ -30,7 +30,7 @@ embassy-executor = { version = "0.2.0", path = "../../embassy-executor", feature | |||
| 30 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "tick-hz-32_768", "defmt-timestamp-uptime"] } | 30 | embassy-time = { version = "0.1.0", path = "../../embassy-time", features = ["defmt", "tick-hz-32_768", "defmt-timestamp-uptime"] } |
| 31 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-any"] } | 31 | embassy-stm32 = { version = "0.1.0", path = "../../embassy-stm32", features = ["nightly", "defmt", "unstable-pac", "memory-x", "time-driver-any"] } |
| 32 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } | 32 | embassy-futures = { version = "0.1.0", path = "../../embassy-futures" } |
| 33 | embassy-stm32-wpan = { version = "0.1.0", path = "../../embassy-stm32-wpan", optional = true, features = ["defmt", "stm32wb55rg"] } | 33 | embassy-stm32-wpan = { version = "0.1.0", path = "../../embassy-stm32-wpan", optional = true, features = ["defmt", "stm32wb55rg", "ble"] } |
| 34 | 34 | ||
| 35 | defmt = "0.3.0" | 35 | defmt = "0.3.0" |
| 36 | defmt-rtt = "0.4" | 36 | defmt-rtt = "0.4" |
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 | } |
