source: rtems/cpukit/score/src/watchdog.c @ 4b48ece0

4.115
Last change on this file since 4b48ece0 was 4b48ece0, checked in by Sebastian Huber <sebastian.huber@…>, on 07/22/13 at 08:21:03

score: Create watchdog implementation header

Move implementation specific parts of watchdog.h and watchdog.inl into
new header file watchdogimpl.h. The watchdog.h contains now only the
application visible API.

  • Property mode set to 100644
File size: 760 bytes
Line 
1/**
2 *  @file
3 *
4 *  @brief Watchdog Handler Initialization
5 *  @ingroup ScoreWatchdog
6 */
7
8/*
9 *  Watchdog Handler
10 *
11 *
12 *  COPYRIGHT (c) 1989-1999.
13 *  On-Line Applications Research Corporation (OAR).
14 *
15 *  The license and distribution terms for this file may be
16 *  found in the file LICENSE in this distribution or at
17 *  http://www.rtems.com/license/LICENSE.
18 */
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/system.h>
25#include <rtems/score/isr.h>
26#include <rtems/score/watchdogimpl.h>
27
28void _Watchdog_Handler_initialization( void )
29{
30  _Watchdog_Sync_count = 0;
31  _Watchdog_Sync_level = 0;
32  _Watchdog_Ticks_since_boot = 0;
33
34  _Chain_Initialize_empty( &_Watchdog_Ticks_chain );
35  _Chain_Initialize_empty( &_Watchdog_Seconds_chain );
36}
Note: See TracBrowser for help on using the repository browser.