diff options
Diffstat (limited to 'chip/lm4/watchdog.h')
-rw-r--r-- | chip/lm4/watchdog.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chip/lm4/watchdog.h b/chip/lm4/watchdog.h new file mode 100644 index 0000000000..75a5e0b4a5 --- /dev/null +++ b/chip/lm4/watchdog.h @@ -0,0 +1,21 @@ +/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +/* Watchdog driver */ + +#ifndef _WATCHDOG_H +#define _WATCHDOG_H + +/* Reload the watchdog counter */ +void watchdog_reload(void); + +/** + * Initialize the watchdog + * with a reloading period of <period_ms> milliseconds. + * It reboots the CPU if the counter has not been reloaded for twice the period. + */ +int watchdog_init(int period_ms); + +#endif /* _WATCHDOG_H */ |