blob: 75a5e0b4a57dfb34640c5a754a30185531ef1c90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */
|