diff options
Diffstat (limited to 'cpukit/score/src/coretodtickle.c')
-rw-r--r-- | cpukit/score/src/coretodtickle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/coretodtickle.c b/cpukit/score/src/coretodtickle.c index f4e5a4f69c..ddc8e4aac0 100644 --- a/cpukit/score/src/coretodtickle.c +++ b/cpukit/score/src/coretodtickle.c @@ -22,6 +22,7 @@ #include <rtems/score/timestamp.h> #include <rtems/score/tod.h> #include <rtems/score/watchdog.h> +#include <rtems/config.h> /*PAGE * @@ -40,7 +41,7 @@ void _TOD_Tickle_ticks( void ) uint32_t seconds; /* Convert the tick quantum to a timestamp */ - _Timestamp_Set( &tick, 0, _TOD_Microseconds_per_tick * 1000 ); + _Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() ); /* Update the counter of ticks since boot */ _Watchdog_Ticks_since_boot += 1; |