pub fn psram_map(psram: PSRAM<'static>) -> &'static mut [MaybeUninit<u8>]Expand description
Map the board’s external PSRAM and return the whole region as a private
slice. Nothing is registered with the global heap — nothing returned here
is ever reachable by a plain alloc::vec! / Box / String.
The default way to get at PSRAM. Hand the slice to a foreign allocator
(e.g. LVGL’s built-in TLSF via lv_mem_add_pool) or use it directly. For
deliberate global exposure (so psram_box / psram_vec can reach
part of PSRAM), use psram_split instead.
The size is auto-detected. Call once, after [esp_hal::init]. Calling
this (or psram_split) more than once is unsound — the PSRAM controller
must only be initialized a single time.