Static memory pool allocation (#7966)

* Static memory pool

* Initializer

* T-Lora Pager: Support LR1121 and SX1280 models (#7956)

* T-Lora Pager: Support LR1121 and SX1280 models

* Remove ifdefs

---------

Co-authored-by: WillyJL <me@willyjl.dev>
This commit is contained in:
Ben Meadors
2025-09-13 07:01:07 -05:00
committed by GitHub
parent 70ac3601b0
commit 9211b1bb4b
4 changed files with 19 additions and 14 deletions

View File

@@ -31,8 +31,7 @@
(MAX_RX_TOPHONE + MAX_RX_FROMRADIO + 2 * MAX_TX_QUEUE + \
2) // max number of packets which can be in flight (either queued from reception or queued for sending)
// static MemoryPool<MeshPacket> staticPool(MAX_PACKETS);
static MemoryDynamic<meshtastic_MeshPacket> staticPool;
static MemoryPool<meshtastic_MeshPacket, MAX_PACKETS> staticPool;
Allocator<meshtastic_MeshPacket> &packetPool = staticPool;