feat(f4): more free memory on handsets with CCM RAM (#5804)

Alternative Lua memory allocator for radios with CCM RAM - primarily GX12 at present
This commit is contained in:
philmoz
2025-01-20 10:32:20 +10:00
committed by GitHub
parent a3c0e0a007
commit a6542e1448
10 changed files with 251 additions and 29 deletions
+2 -2
View File
@@ -343,8 +343,8 @@ void luaInitThemesAndWidgets()
{
TRACE("luaInitThemesAndWidgets");
#if defined(USE_BIN_ALLOCATOR)
lsWidgets = lua_newstate(bin_l_alloc, NULL); //we use our own allocator!
#if defined(USE_CUSTOM_ALLOCATOR)
lsWidgets = lua_newstate(custom_l_alloc, NULL); //we use our own allocator!
#elif defined(LUA_ALLOCATOR_TRACER)
memclear(&lsWidgetsTrace, sizeof(lsWidgetsTrace));
lsWidgetsTrace.script = "lua_newstate(widgets)";