summaryrefslogtreecommitdiffstats
path: root/c/src/librtems++/include
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 17:44:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-12-16 17:44:22 +0000
commit57a9e60730a49637096a2d0ff1448d092fbfa1dd (patch)
treefe76d08afb8cd9c005e1878bd8a177e125b3eee3 /c/src/librtems++/include
parent2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-57a9e60730a49637096a2d0ff1448d092fbfa1dd.tar.bz2
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems++/rtemsTimer.h: Use public API not _TOD_Microseconds_per_tick.
Diffstat (limited to 'c/src/librtems++/include')
-rw-r--r--c/src/librtems++/include/rtems++/rtemsTimer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsTimer.h b/c/src/librtems++/include/rtems++/rtemsTimer.h
index 0ba683c2f2..cf6b76ab97 100644
--- a/c/src/librtems++/include/rtems++/rtemsTimer.h
+++ b/c/src/librtems++/include/rtems++/rtemsTimer.h
@@ -94,9 +94,9 @@ private:
const rtems_status_code rtemsTimer::fire_after(const rtems_interval micro_secs)
{
repeat = false;
- rtems_interval usecs =
- micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
- _TOD_Microseconds_per_tick : micro_secs;
+ rtems_interval usecs = micro_secs &&
+ (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
+ rtems_configuration_get_microseconds_per_tick() : micro_secs;
return set_status_code(rtems_timer_fire_after(id,
TOD_MICROSECONDS_TO_TICKS(usecs),
common_handler,
@@ -106,9 +106,9 @@ const rtems_status_code rtemsTimer::fire_after(const rtems_interval micro_secs)
const rtems_status_code rtemsTimer::repeat_fire_at(const rtems_interval micro_secs)
{
repeat = true;
- rtems_interval usecs =
- micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
- _TOD_Microseconds_per_tick : micro_secs;
+ rtems_interval usecs = micro_secs &&
+ (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
+ rtems_configuration_get_microseconds_per_tick() : micro_secs;
return set_status_code(rtems_timer_fire_after(id,
TOD_MICROSECONDS_TO_TICKS(usecs),
common_handler,