diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-16 20:53:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-12-16 20:53:34 +0000 |
commit | 26fb4aadcd2c3159ecca7493c1f3d02cc02149ba (patch) | |
tree | e352a00acf541d65590f7c250b9fd9cd61f4e70d /cpukit/score/src/coretodtickle.c | |
parent | 2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-26fb4aadcd2c3159ecca7493c1f3d02cc02149ba.tar.bz2 |
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* libblock/src/bdbuf.c, libmisc/capture/capture-cli.c,
libmisc/capture/capture.c, libmisc/mw-fb/mw_uid.c,
rtems/include/rtems/rtems/support.h, score/Makefile.am,
score/include/rtems/score/tod.h, score/src/coretod.c,
score/src/coretodtickle.c: Eliminate all public use of TOD conversion
routines. Eliminate _TOD_Microseconds_per_tick and let every place
use the field directly from the Configuration Table. This required
moving some methods from macros to bodies.
* score/src/coretodmsecstoticks.c, score/src/coretodtickspersec.c,
score/src/coretodusectoticks.c: New files.
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; |