mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-30 05:32:08 +00:00
Add a watchdog module to meshsolar. (#9337)
* add watchdog module * Restore the code in power.h --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
19
src/watchdog/watchdogThread.h
Normal file
19
src/watchdog/watchdogThread.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user