Skip to content

Commit fb519e5

Browse files
committed
rm alloc
1 parent 6113fa6 commit fb519e5

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

Cargo.lock

Lines changed: 0 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ embassy-sync = { version = "0.7.0", features = ["defmt"] }
3434
embassy-time = { version = "0.4.0", features = ["defmt"] }
3535
embedded-graphics = "0.8.1"
3636
embedded-io-async = { version = "0.6.1", features = ["defmt-03"] }
37-
esp-alloc = { version = "0.8.0", features = ["defmt"] }
3837
esp-backtrace = { version = "0.16.0", features = [
3938
"esp32c3",
4039
"panic-handler",

src/bin/control_panel.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ use ssd1306::mode::DisplayConfig;
4040
use ssd1306::{I2CDisplayInterface, Ssd1306};
4141
use static_cell::StaticCell;
4242

43-
extern crate alloc;
44-
4543
type StateMutex = Mutex<CriticalSectionRawMutex, ControlPanelState>;
4644
static STATE_MUTEX: StaticCell<StateMutex> = StaticCell::new();
4745

@@ -57,8 +55,6 @@ async fn main(spawner: Spawner) {
5755
let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max());
5856
let peripherals = esp_hal::init(config);
5957

60-
esp_alloc::heap_allocator!(size: 64 * 1024);
61-
6258
let timer0 = SystemTimer::new(peripherals.SYSTIMER);
6359
esp_hal_embassy::init(timer0.alarm0);
6460

0 commit comments

Comments
 (0)