mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 01:37:33 +00:00
Added basic task creating in manager task
This commit is contained in:
24
App/Src/tasks/watchdog.cpp
Normal file
24
App/Src/tasks/watchdog.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* 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
|
Reference in New Issue
Block a user