mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-29 21:22:03 +00:00
20 lines
327 B
C
20 lines
327 B
C
|
|
#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
|