4.115
Last change
on this file since f031df0e 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:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Report Information on a Watchdog Chain |
---|
5 | * @ingroup ScoreWatchdog |
---|
6 | */ |
---|
7 | |
---|
8 | /* COPYRIGHT (c) 1989-2008. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * |
---|
11 | * The license and distribution terms for this file may be |
---|
12 | * found in the file LICENSE in this distribution or at |
---|
13 | * http://www.rtems.com/license/LICENSE. |
---|
14 | */ |
---|
15 | |
---|
16 | #if HAVE_CONFIG_H |
---|
17 | #include "config.h" |
---|
18 | #endif |
---|
19 | |
---|
20 | #include <rtems/system.h> |
---|
21 | #include <rtems/score/watchdogimpl.h> |
---|
22 | #include <rtems/score/isr.h> |
---|
23 | #include <rtems/bspIo.h> |
---|
24 | |
---|
25 | void _Watchdog_Report_chain( |
---|
26 | const char *name, |
---|
27 | Chain_Control *header |
---|
28 | ) |
---|
29 | { |
---|
30 | ISR_Level level; |
---|
31 | Chain_Node *node; |
---|
32 | |
---|
33 | _ISR_Disable( level ); |
---|
34 | printk( "Watchdog Chain: %s %p\n", name, header ); |
---|
35 | if ( !_Chain_Is_empty( header ) ) { |
---|
36 | for ( node = _Chain_First( header ) ; |
---|
37 | node != _Chain_Tail(header) ; |
---|
38 | node = node->next ) |
---|
39 | { |
---|
40 | Watchdog_Control *watch = (Watchdog_Control *) node; |
---|
41 | |
---|
42 | _Watchdog_Report( NULL, watch ); |
---|
43 | } |
---|
44 | printk( "== end of %s \n", name ); |
---|
45 | } else { |
---|
46 | printk( "Chain is empty\n" ); |
---|
47 | } |
---|
48 | _ISR_Enable( level ); |
---|
49 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.