summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 11:10:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-22 16:57:26 +0200
commit0eae7ba9ba8c6c60e0718e364a37081b290cc457 (patch)
treec5e6b40eaaeb4bb3a358c36ce2be6845b1528cd9 /cpukit/score
parentscore: Create watchdog implementation header (diff)
downloadrtems-0eae7ba9ba8c6c60e0718e364a37081b290cc457.tar.bz2
score: Add WATCHDOG_INITIALIZER()
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/watchdogimpl.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h
index e0324ff257..3085a440f6 100644
--- a/cpukit/score/include/rtems/score/watchdogimpl.h
+++ b/cpukit/score/include/rtems/score/watchdogimpl.h
@@ -40,6 +40,19 @@ extern "C" {
#define WATCHDOG_MAXIMUM_INTERVAL ((Watchdog_Interval) 0xffffffff)
/**
+ * @brief Watchdog initializer for static initialization.
+ *
+ * @see _Watchdog_Initialize().
+ */
+#define WATCHDOG_INITIALIZER( routine, id, user_data ) \
+ { \
+ { NULL, NULL }, \
+ WATCHDOG_INACTIVE, \
+ 0, 0, 0, 0, \
+ ( routine ), ( id ), ( user_data ) \
+ }
+
+/**
* @brief the manner in which a watchdog chain may
* be adjusted by the @ref _Watchdog_Adjust routine.
*