Skip to content

Commit

Permalink
Add esp-alloc to trouble ble example (#2149)
Browse files Browse the repository at this point in the history
* add esp-alloc to trouble ble example

* rustfmt
  • Loading branch information
okhsunrog authored Sep 12, 2024
1 parent f8e2341 commit b5152dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/src/bin/wifi_embassy_trouble.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ use embassy_executor::Spawner;
use embassy_futures::join::join3;
use embassy_sync::blocking_mutex::raw::NoopRawMutex;
use embassy_time::{Duration, Timer};
use esp_alloc as _;
use esp_backtrace as _;
use esp_hal::{prelude::*, timer::timg::TimerGroup};
use esp_wifi::ble::controller::asynch::BleConnector;
Expand All @@ -38,6 +39,9 @@ async fn main(_s: Spawner) {
config.cpu_clock = CpuClock::max();
config
});

esp_alloc::heap_allocator!(72 * 1024);

let timg0 = TimerGroup::new(peripherals.TIMG0);

let init = esp_wifi::initialize(
Expand Down

0 comments on commit b5152dc

Please sign in to comment.