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/gatt_server.rs | |
| parent | 8bed573b88b5b387c7e0183c006520b3b60a7c54 (diff) | |
wpan: fix examples
Diffstat (limited to 'examples/stm32wb/src/bin/gatt_server.rs')
| -rw-r--r-- | examples/stm32wb/src/bin/gatt_server.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/stm32wb/src/bin/gatt_server.rs b/examples/stm32wb/src/bin/gatt_server.rs index 0f6419d45..dd67249c7 100644 --- a/examples/stm32wb/src/bin/gatt_server.rs +++ b/examples/stm32wb/src/bin/gatt_server.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::event::command::{CommandComplete, ReturnParameters}; | 12 | use embassy_stm32_wpan::hci::event::command::{CommandComplete, ReturnParameters}; |
| 12 | use embassy_stm32_wpan::hci::host::uart::{Packet, UartHci}; | 13 | use embassy_stm32_wpan::hci::host::uart::{Packet, UartHci}; |
| 13 | use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; | 14 | use embassy_stm32_wpan::hci::host::{AdvertisingFilterPolicy, EncryptionKey, HostHci, OwnAddressType}; |
| @@ -62,7 +63,9 @@ async fn main(_spawner: Spawner) { | |||
| 62 | Note: extended stack versions are not supported at this time. Do not attempt to install a stack with "extended" in the name. | 63 | Note: extended stack versions are not supported at this time. Do not attempt to install a stack with "extended" in the name. |
| 63 | */ | 64 | */ |
| 64 | 65 | ||
| 65 | let p = embassy_stm32::init(Default::default()); | 66 | let mut config = embassy_stm32::Config::default(); |
| 67 | config.rcc = WPAN_DEFAULT; | ||
| 68 | let p = embassy_stm32::init(config); | ||
| 66 | info!("Hello World!"); | 69 | info!("Hello World!"); |
| 67 | 70 | ||
| 68 | let config = Config::default(); | 71 | let config = Config::default(); |
