Macro esp_alloc::psram_allocator

source ·
macro_rules! psram_allocator {
    ($peripheral:expr,$psram_module:path) => { ... };
}
Expand description

Create a heap allocator backed by PSRAM

You can only have ONE allocator at most. You need a SoC which supports PSRAM and activate the feature to enable it. You need to pass the PSRAM peripheral and the psram module path.

§Usage

esp_alloc::psram_allocator!(peripherals.PSRAM, hal::psram);