diff options
| author | GhaithOueslati <[email protected]> | 2023-07-30 16:46:33 +0100 |
|---|---|---|
| committer | GhaithOueslati <[email protected]> | 2023-07-30 16:46:33 +0100 |
| commit | 73057ee241faf20f4b461766239d7cd805741cd7 (patch) | |
| tree | 87fbba59c54abcafb2336351664e47c0e8d679ed /examples/stm32wb/src/bin/eddystone_beacon.rs | |
| parent | 8bed573b88b5b387c7e0183c006520b3b60a7c54 (diff) | |
wpan: fix examples
Diffstat (limited to 'examples/stm32wb/src/bin/eddystone_beacon.rs')
| -rw-r--r-- | examples/stm32wb/src/bin/eddystone_beacon.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/stm32wb/src/bin/eddystone_beacon.rs b/examples/stm32wb/src/bin/eddystone_beacon.rs index 451bd7d29..ea150c67e 100644 --- a/examples/stm32wb/src/bin/eddystone_beacon.rs +++ b/examples/stm32wb/src/bin/eddystone_beacon.rs | |||
| @@ -8,6 +8,7 @@ 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::rcc::WPAN_DEFAULT; | ||
| 11 | use embassy_stm32_wpan::hci::host::uart::UartHci; | 12 | use embassy_stm32_wpan::hci::host::uart::UartHci; |
| 12 | use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; | 13 | use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; |
| 13 | use embassy_stm32_wpan::hci::types::AdvertisingType; | 14 | use embassy_stm32_wpan::hci::types::AdvertisingType; |
| @@ -54,7 +55,9 @@ async fn main(_spawner: Spawner) { | |||
| 54 | Note: extended stack versions are not supported at this time. Do not attempt to install a stack with "extended" in the name. | 55 | Note: extended stack versions are not supported at this time. Do not attempt to install a stack with "extended" in the name. |
| 55 | */ | 56 | */ |
| 56 | 57 | ||
| 57 | let p = embassy_stm32::init(Default::default()); | 58 | let mut config = embassy_stm32::Config::default(); |
| 59 | config.rcc = WPAN_DEFAULT; | ||
| 60 | let p = embassy_stm32::init(config); | ||
| 58 | info!("Hello World!"); | 61 | info!("Hello World!"); |
| 59 | 62 | ||
| 60 | let config = Config::default(); | 63 | let config = Config::default(); |
