From 18657d189dbd7e56db2894cb78d7ab5a80c2c18f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 16 Dec 2010 14:50:12 +0000 Subject: 2010-12-16 Sebastian Huber * 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. --- cpukit/score/include/rtems/score/watchdog.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'cpukit/score/include/rtems/score/watchdog.h') 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 #endif -- cgit v1.2.3