4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * Watchdog Handler |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT (c) 1989-1999. |
---|
6 | * On-Line Applications Research Corporation (OAR). |
---|
7 | * |
---|
8 | * The license and distribution terms for this file may be |
---|
9 | * found in the file LICENSE in this distribution or at |
---|
10 | * http://www.rtems.com/license/LICENSE. |
---|
11 | * |
---|
12 | * $Id$ |
---|
13 | */ |
---|
14 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/isr.h> |
---|
21 | #include <rtems/score/watchdog.h> |
---|
22 | |
---|
23 | /*PAGE |
---|
24 | * |
---|
25 | * _Watchdog_Handler_initialization |
---|
26 | * |
---|
27 | * This routine initializes the watchdog handler. |
---|
28 | * |
---|
29 | * Input parameters: NONE |
---|
30 | * |
---|
31 | * Output parameters: NONE |
---|
32 | */ |
---|
33 | |
---|
34 | void _Watchdog_Handler_initialization( void ) |
---|
35 | { |
---|
36 | _Watchdog_Sync_count = 0; |
---|
37 | _Watchdog_Sync_level = 0; |
---|
38 | _Watchdog_Ticks_since_boot = 0; |
---|
39 | |
---|
40 | _Chain_Initialize_empty( &_Watchdog_Ticks_chain ); |
---|
41 | _Chain_Initialize_empty( &_Watchdog_Seconds_chain ); |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.