From 0eae7ba9ba8c6c60e0718e364a37081b290cc457 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 22 Jul 2013 11:10:43 +0200 Subject: score: Add WATCHDOG_INITIALIZER() --- cpukit/score/include/rtems/score/watchdogimpl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'cpukit/score') 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 @@ -39,6 +39,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. -- cgit v1.2.3