[Taranis X9E] Variables moved to CCM Memory. Around 45k RAM saved.
This commit is contained in:
+8
-1
@@ -212,6 +212,12 @@
|
||||
#define ROTARY_ENCODER_NAVIGATION
|
||||
#endif
|
||||
|
||||
#if defined(STM32F4)
|
||||
#define _NOCCM __attribute__((section(".ram")))
|
||||
#else
|
||||
#define _NOCCM
|
||||
#endif
|
||||
|
||||
#if defined(SIMU) || defined(CPUARM) || GCC_VERSION < 472
|
||||
typedef int32_t int24_t;
|
||||
#else
|
||||
@@ -706,7 +712,8 @@ extern uint8_t flightModeTransitionLast;
|
||||
extern int _end;
|
||||
extern int _estack;
|
||||
extern int _main_stack_start;
|
||||
#define getAvailableMemory() ((unsigned int)((unsigned char *)&_main_stack_start - heap))
|
||||
extern int _heap_end;
|
||||
#define getAvailableMemory() ((unsigned int)((unsigned char *)&_heap_end - heap))
|
||||
#endif
|
||||
|
||||
void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms);
|
||||
|
||||
Reference in New Issue
Block a user