Add startup and watchdog modules

This commit is contained in:
Henrik Stickann
2022-03-31 18:03:37 +02:00
parent 5fe44ddecf
commit 9b3e3efc8b
8 changed files with 207 additions and 5 deletions

26
include/sta/watchdog.hpp Normal file
View File

@@ -0,0 +1,26 @@
#ifndef STA_WATCHDOG_HPP
#define STA_WATCHDOG_HPP
#include <sta/config.hpp>
#ifdef STA_WATCHDOG_ENABLE
#include <stdint.h>
// Watchdog task flags
//
#define STA_WATCHDOG_FLAG_HEARTBEAT 0x00001000U
namespace sta
{
void startWatchdogTimer();
void notifyWatchdog(uint32_t flags);
} // namespace sta
#endif // STA_WATCHDOG_ENABLE
#endif // STA_WATCHDOG_HPP