mirror of
https://github.com/opentx/opentx.git
synced 2025-07-17 05:15:18 +03:00
Projectkk2glider/flash savings (#4199)
* Flash savings: getFileExtension() de-templated, saves 160 bytes * Flash savings: several variables moved to rodata, RGB macro optimization (speed and can now be used to initialize rodata) Result for Horus: text data bss dec 1261182 808603 42020 2111805 before 1267149 803335 42124 2112608 after (data size also counts .sram section) 5kB saved in .data section (RAM and FLASH) * Removed compiler warnings * RGB() and ARGB() gtests added * ARGB() optimized
This commit is contained in:
parent
3b58ee8d3c
commit
82dce3ee60
14 changed files with 120 additions and 67 deletions
|
@ -38,9 +38,9 @@ extern "C" {
|
|||
lua_State *lsScripts = NULL;
|
||||
uint8_t luaState = 0;
|
||||
uint8_t luaScriptsCount = 0;
|
||||
ScriptInternalData scriptInternalData[MAX_SCRIPTS] = { { SCRIPT_NOFILE, 0 } };
|
||||
ScriptInputsOutputs scriptInputsOutputs[MAX_SCRIPTS] = { {0} };
|
||||
ScriptInternalData standaloneScript = { SCRIPT_NOFILE, 0 };
|
||||
ScriptInternalData scriptInternalData[MAX_SCRIPTS];
|
||||
ScriptInputsOutputs scriptInputsOutputs[MAX_SCRIPTS];
|
||||
ScriptInternalData standaloneScript;
|
||||
uint16_t maxLuaInterval = 0;
|
||||
uint16_t maxLuaDuration = 0;
|
||||
bool luaLcdAllowed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue