Interrupt stack size reduced to 1kB, enabled painting and display of free interrupt stack space

This commit is contained in:
Damjan Adamic
2015-02-20 20:36:21 +01:00
parent 785a814e68
commit a5e8c85557
8 changed files with 40 additions and 14 deletions
+2 -1
View File
@@ -720,7 +720,7 @@ extern uint8_t flightModeTransitionLast;
extern int _end;
extern int _estack;
extern int _main_stack_start;
#define getAvailableMemory() ((unsigned int)((unsigned char *)&_estack - heap))
#define getAvailableMemory() ((unsigned int)((unsigned char *)&_main_stack_start - heap))
#endif
void evalFlightModeMixes(uint8_t mode, uint8_t tick10ms);
@@ -940,6 +940,7 @@ extern uint16_t lastMixerDuration;
#if defined(CPUARM)
uint32_t stack_free(uint32_t tid);
void stack_paint();
#else
uint16_t stack_free();
#endif