mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-29 13:12:04 +00:00
* add watchdog module * Restore the code in power.h --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
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
|