Merge branch 'feature/e-endstop' into merge-abc-with-homing
[clinton/Smoothieware.git] / src / libs / Watchdog.h
1 #ifndef _WATCHDOG_H
2 #define _WATCHDOG_H
3
4 #include <stdint.h>
5
6 #include "Module.h"
7
8 typedef enum
9 {
10 WDT_MRI,
11 WDT_RESET,
12 } WDT_ACTION;
13
14 class Watchdog : public Module
15 {
16 public:
17 Watchdog(uint32_t timeout, WDT_ACTION action);
18 void feed();
19
20 void on_module_loaded();
21 void on_idle(void*);
22 };
23
24 #endif /* _WATCHDOG_H */