Files
wadamesh/include/LvglPsramAlloc.h
T
Kaj SchittecatandClaude Opus 4.8 1f6409702c feat: Heltec V4 TFT touch firmware — app + ui-touch + board + platformio
First board lands. wadamesh builds the LVGL touch firmware as its own project,
consuming the MeshCore core via lib_deps @ git tag (ALLFATHER-BV/MeshCore
#v1.16.0-wada.0) — no vendored core in this repo. Output is byte-identical to the
in-tree meshcomod build (delta = embedded build-path strings only).

Contents: companion_radio app (MyMesh/main/DataStore), ui-touch LVGL UI,
variants/heltec_v4 board glue, boards/heltec_v4.json, lv_conf, the bundled
ed25519 lib, AsyncElegantOTA, partition table, and a flattened platformio.ini
for env heltec_v4_tft_companion_radio_usb_tcp_touch.

MeshCore-derived files (app glue) remain MIT; ui-touch is GPL — see NOTICE.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Kaj Schittecat <kaj@schittecat.com>
2026-06-13 00:01:32 +02:00

21 lines
601 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
// LVGL's general allocator routed to prefer PSRAM. Internal DRAM is precious
// on this board (320 KB total, WiFi DMA wants ~1015 KB for association), so
// the ~60 KB of widget state LVGL grows during buildUiTree goes to the 8 MB
// of PSRAM instead. Falls back to default malloc if PSRAM allocation fails
// (e.g. tiny allocations the heap may refuse to satisfy from SPIRAM).
void* lvglPsramAlloc(size_t size);
void lvglPsramFree(void* ptr);
void* lvglPsramRealloc(void* ptr, size_t size);
#ifdef __cplusplus
}
#endif