diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-10 16:19:48 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-04-13 13:39:26 +0200 |
commit | 54cf0e34c5d6b8be0ce136eac7c4e11c1d487d7f (patch) | |
tree | fb6485f659b1fe4204893e9d442f7e5deda96db3 /cpukit/score/src/watchdogadjust.c | |
parent | score: Split _Watchdog_Adjust() (diff) | |
download | rtems-54cf0e34c5d6b8be0ce136eac7c4e11c1d487d7f.tar.bz2 |
score: Add Watchdog_Header
This type is intended to encapsulate all state to manage a watchdog
chain.
Update #2307.
Diffstat (limited to 'cpukit/score/src/watchdogadjust.c')
-rw-r--r-- | cpukit/score/src/watchdogadjust.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/watchdogadjust.c b/cpukit/score/src/watchdogadjust.c index 5d841049dc..687f063482 100644 --- a/cpukit/score/src/watchdogadjust.c +++ b/cpukit/score/src/watchdogadjust.c @@ -23,7 +23,7 @@ #include <rtems/score/isrlevel.h> void _Watchdog_Adjust_backward( - Chain_Control *header, + Watchdog_Header *header, Watchdog_Interval units ) { @@ -31,7 +31,7 @@ void _Watchdog_Adjust_backward( _ISR_Disable( level ); - if ( !_Chain_Is_empty( header ) ) { + if ( !_Watchdog_Is_empty( header ) ) { _Watchdog_First( header )->delta_interval += units; } @@ -39,7 +39,7 @@ void _Watchdog_Adjust_backward( } void _Watchdog_Adjust_forward( - Chain_Control *header, + Watchdog_Header *header, Watchdog_Interval units ) { @@ -47,7 +47,7 @@ void _Watchdog_Adjust_forward( _ISR_Disable( level ); - while ( !_Chain_Is_empty( header ) && units > 0 ) { + while ( !_Watchdog_Is_empty( header ) && units > 0 ) { Watchdog_Control *first = _Watchdog_First( header ); if ( units < first->delta_interval ) { |