2020-03-15 23:47:19 +00:00
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
2020-04-15 03:22:27 +00:00
|
|
|
#include "freertosinc.h"
|
2020-03-15 23:47:19 +00:00
|
|
|
#include "configuration.h"
|
|
|
|
|
|
|
|
namespace meshtastic
|
|
|
|
{
|
|
|
|
|
|
|
|
void printThreadInfo(const char *extra)
|
|
|
|
{
|
2020-04-15 03:22:27 +00:00
|
|
|
#ifndef NO_ESP32
|
2020-03-15 23:47:19 +00:00
|
|
|
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));
|
2020-04-15 03:22:27 +00:00
|
|
|
#endif
|
2020-03-15 23:47:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace meshtastic
|