MCU
Loading...
Searching...
No Matches
WatchdogInterface.h
Go to the documentation of this file.
1#ifndef __WATCHDOG_INTERFACE_H__
2#define __WATCHDOG_INTERFACE_H__
3
4#include "SysClock.h"
5const unsigned long WATCHDOG_KICK_INTERVAL = 10; // milliseconds
6
8{
9private:
10 /* Watchdog last kicked time */
11 unsigned long watchdog_time;
12
13 /* Watchdog output state */
14 bool watchdog_state;
15
16 /* Hardware interface pins */
18
19public:
20 WatchdogInterface(int wd_input_pin){};
21
22 /* Initialize interface pin mode */
23 void init(unsigned long curr_millis) {return;};
24
25 /* Write to Main ECU */
26 // Initialize output value
27 void set_start_state() {return;};
28
29 /* Kick watchdog */
30 void kick_watchdog(unsigned long curr_millis) {};
31
32};
33
34#endif /* __WATCHDOG_INTERFACE_H__ */
void init(unsigned long curr_millis)
unsigned long watchdog_time
void kick_watchdog(unsigned long curr_millis)
WatchdogInterface(int wd_input_pin)
const unsigned long WATCHDOG_KICK_INTERVAL