mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-29 21:30:39 +00:00
Add esp-alloc to trouble ble example (#2149)
* add esp-alloc to trouble ble example * rustfmt
This commit is contained in:
parent
f8e2341116
commit
b5152dcae5
@ -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;
|
||||
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user