summaryrefslogtreecommitdiffstats
path: root/cpukit/score/include/rtems/score/tod.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 22:13:08 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-04-05 22:13:08 +0000
commit63f786e7c8ed2e34a4ae21f852d1e12e1e4d01d7 (patch)
treefd2219bf85cc6d7800e3a84cc7cca67586298967 /cpukit/score/include/rtems/score/tod.h
parent2007-04-05 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-63f786e7c8ed2e34a4ae21f852d1e12e1e4d01d7.tar.bz2
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* itron/src/itrontime.c: Fix typo. * score/include/rtems/score/tod.h: Add TOD_TICKS_PER_SECOND macro. * score/src/iterateoverthreads.c: Safely take NULL as argument. * score/src/threaddispatch.c: Formatting.
Diffstat (limited to 'cpukit/score/include/rtems/score/tod.h')
-rw-r--r--cpukit/score/include/rtems/score/tod.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/include/rtems/score/tod.h b/cpukit/score/include/rtems/score/tod.h
index a0c252e376..f98c2c49fd 100644
--- a/cpukit/score/include/rtems/score/tod.h
+++ b/cpukit/score/include/rtems/score/tod.h
@@ -31,7 +31,6 @@ extern "C" {
#endif
#include <rtems/score/object.h>
-#include <rtems/score/watchdog.h>
#include <time.h>
/** @defgroup ScoreTODConstants TOD Constants
@@ -108,6 +107,14 @@ extern "C" {
/**@}*/
+/** @brief Ticks per Second
+ *
+ * This macro calculates the number of ticks per second.
+ */
+
+#define TOD_TICKS_PER_SECOND \
+ (TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick)
+
/** @brief RTEMS Epoch Year
*
* The following constant define the earliest year to which an