Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
watchdog.h
Go to the documentation of this file.
1
34#ifndef _OS_WATCHDOG_H_
35#define _OS_WATCHDOG_H_
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
42void start_watchdog(int period_msec);
44void reset_watchdog(void);
52void add_watchdog_reset_timer(int period_msec);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif // _OS_WATCHDOG_H_
void reset_watchdog(void)
Resets the watchdog.
Definition watchdog.c:80
void start_watchdog(int period_msec)
Starts a watchdog thread that must be reset more often than period_msec.
Definition watchdog.c:67
void add_watchdog_reset_timer(int period_msec)
Inserts a timer that will periodically reset the watchdog, thereby practically making the watchdog wa...
Definition watchdog.c:93