refactor: IWDG driver and EM trigger (#3846)
This commit is contained in:
+4
-4
@@ -24,7 +24,7 @@
|
||||
|
||||
#include "opentx.h"
|
||||
#include "timers_driver.h"
|
||||
#include "watchdog_driver.h"
|
||||
#include "hal/watchdog_driver.h"
|
||||
|
||||
#if defined(BLUETOOTH)
|
||||
#include "bluetooth_driver.h"
|
||||
@@ -862,7 +862,7 @@ int cliStackInfo(const char ** argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern int _end;
|
||||
extern int _heap_start;
|
||||
extern int _heap_end;
|
||||
extern unsigned char *heap;
|
||||
|
||||
@@ -889,10 +889,10 @@ int cliMemoryInfo(const char ** argv)
|
||||
cliSerialPrint("\tkeepcost %d bytes", info.keepcost);
|
||||
|
||||
cliSerialPrint("\nHeap:");
|
||||
cliSerialPrint("\tstart %p", (unsigned char *)&_end);
|
||||
cliSerialPrint("\tstart %p", (unsigned char *)&_heap_start);
|
||||
cliSerialPrint("\tend %p", (unsigned char *)&_heap_end);
|
||||
cliSerialPrint("\tcurr %p", heap);
|
||||
cliSerialPrint("\tused %d bytes", (int)(heap - (unsigned char *)&_end));
|
||||
cliSerialPrint("\tused %d bytes", (int)(heap - (unsigned char *)&_heap_start));
|
||||
cliSerialPrint("\tfree %d bytes", (int)((unsigned char *)&_heap_end - heap));
|
||||
|
||||
#if defined(LUA)
|
||||
|
||||
Reference in New Issue
Block a user