WDT.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * WDT.h
8  *
9  * Created on: 06 ���. 2015 �.
10  * Author: Anakod
11  *
12  ****/
13 
21 #pragma once
22 
23 #include "System.h"
24 
30 class WDTClass : protected ISystemReadyHandler
31 {
32 public:
36  void enable(bool enableWatchDog);
37 
42  void alive();
43 
44 protected:
45  void onSystemReady() override;
46 
47  void internalApplyEnabled();
48 
49 private:
50  bool enabled = true;
51 };
52 
59 extern WDTClass WDT;
60 
Interface class implemented by classes to support on-ready callback.
Definition: System.h:55
WDTClass WDT
Global instance of watchdog timer object.
void alive()
Keep watchdog timer alive.
Definition: WDT.h:30
void internalApplyEnabled()
void enable(bool enableWatchDog)
Enable or disable watchdog timer.
void onSystemReady() override
Handle system ready events.