mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-17 17:11:30 +10:00
18 lines
325 B
C++
18 lines
325 B
C++
#pragma once
|
|
|
|
#include "concurrency/OSThread.h"
|
|
#include <stdint.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
|