diff options
| author | xoviat <[email protected]> | 2023-06-25 16:44:52 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-06-25 16:44:52 +0000 |
| commit | 03e0116a56d7bc4b8eb639fd590eaa186d039b2b (patch) | |
| tree | 7fe23e3a556a06202bf926d6176d39949f4c1ab6 /examples | |
| parent | 4dd48099bee305fc31e47a586f34d09c3ec02673 (diff) | |
| parent | 018622f607a17037903ef7c5592dda762002f89b (diff) | |
Merge pull request #1580 from xoviat/wpan
stm32/wpan: cleanup
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32wb/src/bin/eddystone_beacon.rs | 14 | ||||
| -rw-r--r-- | examples/stm32wb/src/bin/tl_mbox_mac.rs | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/examples/stm32wb/src/bin/eddystone_beacon.rs b/examples/stm32wb/src/bin/eddystone_beacon.rs index fdd5be4a2..b99f8cb2e 100644 --- a/examples/stm32wb/src/bin/eddystone_beacon.rs +++ b/examples/stm32wb/src/bin/eddystone_beacon.rs | |||
| @@ -8,15 +8,15 @@ use defmt::*; | |||
| 8 | use embassy_executor::Spawner; | 8 | use embassy_executor::Spawner; |
| 9 | use embassy_stm32::bind_interrupts; | 9 | use embassy_stm32::bind_interrupts; |
| 10 | use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler}; | 10 | use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler}; |
| 11 | use embassy_stm32_wpan::ble::hci::host::uart::UartHci; | 11 | use embassy_stm32_wpan::hci::host::uart::UartHci; |
| 12 | use embassy_stm32_wpan::ble::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; | 12 | use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; |
| 13 | use embassy_stm32_wpan::ble::hci::types::AdvertisingType; | 13 | use embassy_stm32_wpan::hci::types::AdvertisingType; |
| 14 | use embassy_stm32_wpan::ble::hci::vendor::stm32wb::command::gap::{ | 14 | use embassy_stm32_wpan::hci::vendor::stm32wb::command::gap::{ |
| 15 | AdvertisingDataType, DiscoverableParameters, GapCommands, Role, | 15 | AdvertisingDataType, DiscoverableParameters, GapCommands, Role, |
| 16 | }; | 16 | }; |
| 17 | use embassy_stm32_wpan::ble::hci::vendor::stm32wb::command::gatt::GattCommands; | 17 | use embassy_stm32_wpan::hci::vendor::stm32wb::command::gatt::GattCommands; |
| 18 | use embassy_stm32_wpan::ble::hci::vendor::stm32wb::command::hal::{ConfigData, HalCommands, PowerLevel}; | 18 | use embassy_stm32_wpan::hci::vendor::stm32wb::command::hal::{ConfigData, HalCommands, PowerLevel}; |
| 19 | use embassy_stm32_wpan::ble::hci::BdAddr; | 19 | use embassy_stm32_wpan::hci::BdAddr; |
| 20 | use embassy_stm32_wpan::lhci::LhciC1DeviceInformationCcrp; | 20 | use embassy_stm32_wpan::lhci::LhciC1DeviceInformationCcrp; |
| 21 | use embassy_stm32_wpan::TlMbox; | 21 | use embassy_stm32_wpan::TlMbox; |
| 22 | use {defmt_rtt as _, panic_probe as _}; | 22 | use {defmt_rtt as _, panic_probe as _}; |
diff --git a/examples/stm32wb/src/bin/tl_mbox_mac.rs b/examples/stm32wb/src/bin/tl_mbox_mac.rs index afd319a41..f67be4682 100644 --- a/examples/stm32wb/src/bin/tl_mbox_mac.rs +++ b/examples/stm32wb/src/bin/tl_mbox_mac.rs | |||
| @@ -49,7 +49,9 @@ async fn main(_spawner: Spawner) { | |||
| 49 | let sys_event = mbox.sys_subsystem.read().await; | 49 | let sys_event = mbox.sys_subsystem.read().await; |
| 50 | info!("sys event: {}", sys_event.payload()); | 50 | info!("sys event: {}", sys_event.payload()); |
| 51 | 51 | ||
| 52 | mbox.sys_subsystem.shci_c2_mac_802_15_4_init().await; | 52 | let result = mbox.sys_subsystem.shci_c2_mac_802_15_4_init().await; |
| 53 | info!("initialized mac: {}", result); | ||
| 54 | |||
| 53 | // | 55 | // |
| 54 | // info!("starting ble..."); | 56 | // info!("starting ble..."); |
| 55 | // mbox.ble_subsystem.t_write(0x0c, &[]).await; | 57 | // mbox.ble_subsystem.t_write(0x0c, &[]).await; |
