Files
OpenCellular/include/watchdog.h
Vincent Palatin 4cca2932ef Move SoC-independant headers to another directory
Preparatory work to introduce a second SoC : 2nd series 1/4

The atomic operations are SoC independant since they are only using
LDREX/STREX instructions which are just core specific ARMv7-M).

The watchdog header defines the API which is common to all platforms.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>

BUG=None
TEST=run EC firmware on BDS and check a few console commands
2012-01-26 01:29:48 +00:00

22 lines
536 B
C

/* 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 */