Trunk
This commit is contained in:
@@ -1,18 +1,16 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include "concurrency/OSThread.h"
|
#include "concurrency/OSThread.h"
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
#ifdef HAS_HARDWARE_WATCHDOG
|
#ifdef HAS_HARDWARE_WATCHDOG
|
||||||
class WatchdogThread : private concurrency::OSThread
|
class WatchdogThread : private concurrency::OSThread
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
WatchdogThread();
|
WatchdogThread();
|
||||||
void feedDog(void);
|
void feedDog(void);
|
||||||
virtual bool setup();
|
virtual bool setup();
|
||||||
virtual int32_t runOnce() override;
|
virtual int32_t runOnce() override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern WatchdogThread *watchdogThread;
|
extern WatchdogThread *watchdogThread;
|
||||||
|
|||||||
Reference in New Issue
Block a user