aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32wb/src/bin/eddystone_beacon.rs
diff options
context:
space:
mode:
authorGhaithOueslati <[email protected]>2023-07-30 16:46:33 +0100
committerGhaithOueslati <[email protected]>2023-07-30 16:46:33 +0100
commit73057ee241faf20f4b461766239d7cd805741cd7 (patch)
tree87fbba59c54abcafb2336351664e47c0e8d679ed /examples/stm32wb/src/bin/eddystone_beacon.rs
parent8bed573b88b5b387c7e0183c006520b3b60a7c54 (diff)
wpan: fix examples
Diffstat (limited to 'examples/stm32wb/src/bin/eddystone_beacon.rs')
-rw-r--r--examples/stm32wb/src/bin/eddystone_beacon.rs5
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::*;
8use embassy_executor::Spawner; 8use embassy_executor::Spawner;
9use embassy_stm32::bind_interrupts; 9use embassy_stm32::bind_interrupts;
10use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler}; 10use embassy_stm32::ipcc::{Config, ReceiveInterruptHandler, TransmitInterruptHandler};
11use embassy_stm32::rcc::WPAN_DEFAULT;
11use embassy_stm32_wpan::hci::host::uart::UartHci; 12use embassy_stm32_wpan::hci::host::uart::UartHci;
12use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; 13use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType};
13use embassy_stm32_wpan::hci::types::AdvertisingType; 14use 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();