summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/watchdog.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-12-16 14:50:12 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-12-16 14:50:12 +0000
commit18657d189dbd7e56db2894cb78d7ab5a80c2c18f (patch)
tree8abfb63822239f3df800d1b4235662b40a7c864e /cpukit/score/include/rtems/score/watchdog.h
parentAdded missing include file. (diff)
downloadrtems-18657d189dbd7e56db2894cb78d7ab5a80c2c18f.tar.bz2
2010-12-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/watchdognanoseconds.c: New file. * score/Makefile.am: Reflect change above. * score/include/rtems/score/watchdog.h, score/src/coretodget.c, score/src/coretodgetuptime.c: Do not allow NULL as nanoseconds since last tick handler pointer.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/watchdog.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/score/include/rtems/score/watchdog.h b/cpukit/score/include/rtems/score/watchdog.h
index f3fb27a14f..33c2739633 100644
--- a/cpukit/score/include/rtems/score/watchdog.h
+++ b/cpukit/score/include/rtems/score/watchdog.h
@@ -170,8 +170,8 @@ SCORE_EXTERN volatile Watchdog_Interval _Watchdog_Ticks_since_boot;
* This is a pointer to the optional BSP plugin to obtain the number
* of nanoseconds since the last clock tick.
*/
-SCORE_EXTERN Watchdog_Nanoseconds_since_last_tick_routine
- _Watchdog_Nanoseconds_since_tick_handler;
+extern Watchdog_Nanoseconds_since_last_tick_routine
+ _Watchdog_Nanoseconds_since_tick_handler;
/** @brief Per Ticks Watchdog List
*
@@ -302,6 +302,13 @@ void _Watchdog_Report_chain(
Chain_Control *header
);
+/**
+ * @brief Default nanoseconds since last tick handler.
+ *
+ * @retval 0 Always.
+ */
+uint32_t _Watchdog_Nanoseconds_since_tick_default_handler( void );
+
#ifndef __RTEMS_APPLICATION__
#include <rtems/score/watchdog.inl>
#endif