Allow using Segger RTT as debug output (#3052)

Firmware needs to be built with -DDEBUG=YES and -DDEBUG_SEGGER_RTT=YES to use this feature.
This commit is contained in:
Cliff
2023-01-23 09:08:31 +01:00
committed by GitHub
parent 15dca01f42
commit 0b8e4c6003
7 changed files with 69 additions and 12 deletions
+2 -2
View File
@@ -139,7 +139,7 @@ void dumpTraceBuffer()
" notd", // INT_OTG_FS_RX_NOT_DEVICE,
#endif // #if defined(DEBUG_USB_INTERRUPTS)
};
#elif defined(PCBTARANIS)
#elif defined(PCBTARANIS)
const char * const interruptNames[INT_LAST] = {
"Tick ", // INT_TICK,
"5ms ", // INT_5MS,
@@ -201,7 +201,7 @@ void DebugTimer::stop()
else {
last *= 10000ul; //adjust unit to 1us
}
evalStats();
evalStats();
}
DebugTimer debugTimers[DEBUG_TIMERS_COUNT];