1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-21 23:35:30 +03:00

Add actual stack watermarking to startup code; add stack status to CLI status

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2016-10-02 22:56:05 +10:00
parent 65e37cd476
commit 7cc049a3c6
9 changed files with 599 additions and 478 deletions

View file

@ -52,6 +52,7 @@
#include "drivers/timer.h"
#include "drivers/pwm_rx.h"
#include "drivers/sdcard.h"
#include "drivers/stack_check.h"
#include "drivers/buf_writer.h"
@ -2817,6 +2818,10 @@ static void cliStatus(char *cmdline)
const uint16_t i2cErrorCounter = 0;
#endif
#ifdef STACK_CHECK
cliPrintf("Used stack: %d, Total stack: %d\r\n", getUsedStackSize(), getTotalStackSize());
#endif
cliPrintf("Cycle Time: %d, I2C Errors: %d, config size: %d\r\n", cycleTime, i2cErrorCounter, sizeof(master_t));
}