Files
firmware/src/watchdog/watchdogThread.h

20 lines
327 B
C
Raw Normal View History

#pragma once
#include <stdint.h>
#include "concurrency/OSThread.h"
#ifdef HAS_HARDWARE_WATCHDOG
class WatchdogThread : private concurrency::OSThread
{
public:
WatchdogThread();
void feedDog(void);
virtual bool setup();
virtual int32_t runOnce() override;
};
extern WatchdogThread *watchdogThread;
#endif