source: rtems/cpukit/score/src/watchdog.c @ 54cf0e34

4.115
Last change on this file since 54cf0e34 was 54cf0e34, checked in by Sebastian Huber <sebastian.huber@…>, on Apr 10, 2015 at 2:19:48 PM

score: Add Watchdog_Header

This type is intended to encapsulate all state to manage a watchdog
chain.

Update #2307.

  • Property mode set to 100644
File size: 715 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.org/license/LICENSE.
18 */
19
20#if HAVE_CONFIG_H
21#include "config.h"
22#endif
23
24#include <rtems/score/watchdogimpl.h>
25
26void _Watchdog_Handler_initialization( void )
27{
28  _Watchdog_Sync_count = 0;
29  _Watchdog_Sync_level = 0;
30  _Watchdog_Ticks_since_boot = 0;
31
32  _Watchdog_Header_initialize( &_Watchdog_Ticks_header );
33  _Watchdog_Header_initialize( &_Watchdog_Seconds_header );
34}
Note: See TracBrowser for help on using the repository browser.