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 
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:56
Definition: WDT.h:31
void onSystemReady() override
Handle system ready events.
void alive()
Keep watchdog timer alive.
void enable(bool enableWatchDog)
Enable or disable watchdog timer.
void internalApplyEnabled()
WDTClass WDT
Global instance of watchdog timer object.