mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 19:29:57 +00:00
0a6af936ed
Lots of NO_ESP32 to remove later...
21 lines
473 B
C++
21 lines
473 B
C++
#include "debug.h"
|
|
|
|
#include <cstdint>
|
|
|
|
#include "freertosinc.h"
|
|
#include "configuration.h"
|
|
|
|
namespace meshtastic
|
|
{
|
|
|
|
void printThreadInfo(const char *extra)
|
|
{
|
|
#ifndef NO_ESP32
|
|
uint32_t taskHandle = reinterpret_cast<uint32_t>(xTaskGetCurrentTaskHandle());
|
|
DEBUG_MSG("printThreadInfo(%s) task: %" PRIx32 " core id: %u min free stack: %u\n", extra, taskHandle, xPortGetCoreID(),
|
|
uxTaskGetStackHighWaterMark(nullptr));
|
|
#endif
|
|
}
|
|
|
|
} // namespace meshtastic
|