Commit | Line | Data |
---|---|---|
073b1698 MM |
1 | #ifndef _WATCHDOG_H |
2 | #define _WATCHDOG_H | |
3 | ||
4 | #include <stdint.h> | |
5 | ||
6eeb045a MM |
6 | #include "Module.h" |
7 | ||
073b1698 MM |
8 | typedef enum |
9 | { | |
10 | WDT_MRI, | |
11 | WDT_RESET, | |
12 | } WDT_ACTION; | |
13 | ||
6eeb045a | 14 | class Watchdog : public Module |
073b1698 MM |
15 | { |
16 | public: | |
17 | Watchdog(uint32_t timeout, WDT_ACTION action); | |
18 | void feed(); | |
6eeb045a MM |
19 | |
20 | void on_module_loaded(); | |
21 | void on_idle(void*); | |
073b1698 MM |
22 | }; |
23 | ||
24 | #endif /* _WATCHDOG_H */ |