summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/config.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 15:39:49 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 15:39:49 +0000
commit2b9968add9448ba0076652688352747cf07c9b34 (patch)
tree0989fb33c34b4bf5881ee4f643b53ea163bbf19f /cpukit/sapi/include/rtems/config.h
parentRegenerate. (diff)
downloadrtems-2b9968add9448ba0076652688352747cf07c9b34.tar.bz2
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* sapi/include/rtems/config.h: Remove commented out lines. Add macro for rtems_configuration_get_nanoseconds_per_tick().
Diffstat (limited to 'cpukit/sapi/include/rtems/config.h')
-rw-r--r--cpukit/sapi/include/rtems/config.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index ad3f923965..91110d846f 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -57,12 +57,6 @@ typedef void *itron_api_configuration_table;
#include <rtems/rtems/config.h>
-/* XXX <rtems/rtems/config.h> should cover these
-#include <rtems/rtems/status.h>
-#include <rtems/rtems/types.h>
-#include <rtems/rtems/tasks.h>
-*/
-
#include <rtems/extension.h>
#include <rtems/io.h>
#if defined(RTEMS_MULTIPROCESSING)
@@ -208,6 +202,8 @@ extern rtems_configuration_table Configuration;
(Configuration.microseconds_per_tick)
#define rtems_configuration_get_milliseconds_per_tick() \
(Configuration.microseconds_per_tick / 1000)
+#define rtems_configuration_get_nanoseconds_per_tick() \
+ (Configuration.microseconds_per_tick * 1000)
#define rtems_configuration_get_ticks_per_timeslice() \
(Configuration.ticks_per_timeslice)