summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi/include/rtems/config.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-20 15:35:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-24 09:37:28 +0200
commitcea5ff700166a24b5da300cf0aa6884164600ed3 (patch)
treefc36240554ec8c1da94dfe58bb414aea4fc870e2 /cpukit/sapi/include/rtems/config.h
parentscore: _Watchdog_Is_far_future_monotonic_timespec (diff)
downloadrtems-cea5ff700166a24b5da300cf0aa6884164600ed3.tar.bz2
score: Add _Watchdog_Nanoseconds_per_tick
Move it from the configuration to a separate variable. Update #3117. Update #3182.
Diffstat (limited to 'cpukit/sapi/include/rtems/config.h')
-rw-r--r--cpukit/sapi/include/rtems/config.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h
index 2993e70543..6b97376511 100644
--- a/cpukit/sapi/include/rtems/config.h
+++ b/cpukit/sapi/include/rtems/config.h
@@ -43,6 +43,8 @@ extern "C" {
#define rtems_resource_maximum_per_allocation(resource) \
_Objects_Maximum_per_allocation(resource)
+#include <rtems/score/watchdog.h>
+
/*
* This is kind of kludgy but it allows targets to totally ignore the
* optional APIs like POSIX safely.
@@ -165,14 +167,6 @@ typedef struct {
uint32_t microseconds_per_tick;
/**
- * This field specifies the number of nanoseconds which elapse
- * between clock ticks. This value is derived from the
- * microseconds_per_tick field and provided to avoid calculation at
- * run-time.
- */
- uint32_t nanoseconds_per_tick;
-
- /**
* This field specifies the number of ticks in each task's timeslice.
*/
uint32_t ticks_per_timeslice;
@@ -308,7 +302,7 @@ extern const rtems_configuration_table Configuration;
#define rtems_configuration_get_milliseconds_per_tick() \
(Configuration.microseconds_per_tick / 1000)
#define rtems_configuration_get_nanoseconds_per_tick() \
- (Configuration.nanoseconds_per_tick)
+ (_Watchdog_Nanoseconds_per_tick)
#define rtems_configuration_get_ticks_per_timeslice() \
(Configuration.ticks_per_timeslice)