mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-14 02:06:00 +00:00
25 lines
403 B
C++
25 lines
403 B
C++
/*
|
|
* watchdog.cpp
|
|
*
|
|
* Created on: Sep 1, 2023
|
|
* Author: Dario
|
|
*/
|
|
|
|
#include <sta/debug/debug.hpp>
|
|
#include <sta/rtos/system/watchdog.hpp>
|
|
|
|
namespace sta
|
|
{
|
|
namespace rtos
|
|
{
|
|
// Implementation of the watchdog event handler.
|
|
void watchdogEventHandler(void *, uint32_t flags)
|
|
{
|
|
if (flags & STA_WATCHDOG_FLAG_HEARTBEAT)
|
|
{
|
|
STA_DEBUG_PRINTLN("PING!");
|
|
}
|
|
}
|
|
}
|
|
} // namespace sta
|