diff options
Diffstat (limited to 'include/watchdog.h')
-rw-r--r-- | include/watchdog.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/watchdog.h b/include/watchdog.h index ca88094e6a..02c603ca40 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -32,6 +32,10 @@ int watchdog_init(void); void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp); /* Reload the watchdog counter */ +#ifdef CONFIG_WATCHDOG void watchdog_reload(void); +#else +static inline void watchdog_reload(void) { } +#endif #endif /* __CROS_EC_WATCHDOG_H */ |