1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 08:45:24 +03:00

[Taranis X9E] Variables moved to CCM Memory. Around 45k RAM saved.

This commit is contained in:
bsongis 2015-05-09 08:47:46 +02:00
parent 1086ae85e5
commit 5680f00fd3
15 changed files with 246 additions and 51 deletions

View file

@ -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);