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:
committed by
Bertrand Songis
parent
3b58ee8d3c
commit
82dce3ee60
+3
-3
@@ -106,7 +106,7 @@ void dumpTraceBuffer()
|
||||
#if defined(DEBUG_INTERRUPTS)
|
||||
|
||||
#if defined(PCBHORUS)
|
||||
const char * interruptNames[INT_LAST] = {
|
||||
const char * const interruptNames[INT_LAST] = {
|
||||
"Tick ", // INT_TICK,
|
||||
"1ms ", // INT_1MS,
|
||||
"Ser2 ", // INT_SER2,
|
||||
@@ -139,7 +139,7 @@ void dumpTraceBuffer()
|
||||
#endif // #if defined(DEBUG_USB_INTERRUPTS)
|
||||
};
|
||||
#elif defined(PCBTARANIS)
|
||||
const char * interruptNames[INT_LAST] = {
|
||||
const char * const interruptNames[INT_LAST] = {
|
||||
"Tick ", // INT_TICK,
|
||||
"5ms ", // INT_5MS,
|
||||
"Audio", // INT_AUDIO,
|
||||
@@ -231,7 +231,7 @@ void DebugTimer::stop()
|
||||
|
||||
DebugTimer debugTimers[DEBUG_TIMERS_COUNT];
|
||||
|
||||
const char * debugTimerNames[DEBUG_TIMERS_COUNT] = {
|
||||
const char * const debugTimerNames[DEBUG_TIMERS_COUNT] = {
|
||||
"Pulses int." // debugTimerIntPulses,
|
||||
,"Pulses dur." // debugTimerIntPulsesDuration,
|
||||
,"10ms dur. " // debugTimerPer10ms,
|
||||
|
||||
Reference in New Issue
Block a user