refactor: IWDG driver and EM trigger (#3846)

This commit is contained in:
Raphael Coeffic
2023-12-04 07:14:25 +10:00
committed by GitHub
parent e18a2a90a4
commit 5153aaeea0
89 changed files with 1204 additions and 3202 deletions
+4 -4
View File
@@ -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)