mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-08-29 05:28:56 +00:00
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>
21 lines
601 B
C
21 lines
601 B
C
#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 ~10–15 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
|