diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/src/clocksetnsecshandler.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/cpukit/rtems/src/clocksetnsecshandler.c b/cpukit/rtems/src/clocksetnsecshandler.c index 25c0ad7f03..5c50af179c 100644 --- a/cpukit/rtems/src/clocksetnsecshandler.c +++ b/cpukit/rtems/src/clocksetnsecshandler.c @@ -18,26 +18,9 @@ #include "config.h" #endif -#include <rtems/system.h> -#include <rtems/rtems/status.h> #include <rtems/rtems/clock.h> -#include <rtems/score/isr.h> -#include <rtems/score/thread.h> -#include <rtems/score/watchdogimpl.h> +#include <rtems/score/todimpl.h> -/* - * rtems_clock_set_nanoseconds_extension - * - * This directive sets the BSP provided nanoseconds since last tick - * extension. - * - * Input parameters: - * routine - pointer to the extension routine - * - * Output parameters: - * RTEMS_SUCCESSFUL - if successful - * error code - if unsuccessful - */ rtems_status_code rtems_clock_set_nanoseconds_extension( rtems_nanoseconds_extension_routine routine ) @@ -45,6 +28,7 @@ rtems_status_code rtems_clock_set_nanoseconds_extension( if ( !routine ) return RTEMS_INVALID_ADDRESS; - _Watchdog_Nanoseconds_since_tick_handler = routine; + _TOD_Set_nanoseconds_since_last_tick_handler( routine ); + return RTEMS_SUCCESSFUL; } |