mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-02 13:14:51 +00:00
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
22 lines
536 B
C
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 */
|