summaryrefslogtreecommitdiff
path: root/include/watchdog.h
blob: 68ac7b917e4449df1d2adfb2300d474918fd58d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copyright (c) 2012 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 __CROS_EC_WATCHDOG_H
#define __CROS_EC_WATCHDOG_H

/* Initialize the watchdog.  This will cause the CPU to reboot if it has been
 * more than 2 watchdog periods since watchdog_reload() has been called. */
int watchdog_init(int period_ms);

/* Reload the watchdog counter */
void watchdog_reload(void);

#endif /* __CROS_EC_WATCHDOG_H */