Created debug.hpp and fixed doxygen

This commit is contained in:
dario
2024-02-14 13:36:21 +01:00
parent 801408e371
commit f11a6fd5f7
4 changed files with 56 additions and 4 deletions

15
src/debug.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include <sta/tacos/debug.hpp>
namespace sta
{
namespace tacos
{
#ifdef STA_TACOS_WATCHDOG_ENABLED
uint16_t getNumThreadRestarts()
{
return Watchdog::instance()->getNumRestarts();
}
#endif // STA_TACOS_WATCHDOG_ENABLED
} // namespace tacos
} // namespace sta