2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>

* include/rtems++/rtemsEvent.h, include/rtems++/rtemsMessageQueue.h,
	include/rtems++/rtemsSemaphore.h, include/rtems++/rtemsTimer.h,
	src/rtemsTask.cc: Eliminate all public use of TOD conversion
	routines.
This commit is contained in:
Joel Sherrill
2008-12-16 20:55:45 +00:00
parent 26fb4aadcd
commit e85d043f0c
6 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,10 @@
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems++/rtemsEvent.h, include/rtems++/rtemsMessageQueue.h,
include/rtems++/rtemsSemaphore.h, include/rtems++/rtemsTimer.h,
src/rtemsTask.cc: Eliminate all public use of TOD conversion
routines.
2008-12-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/rtems++/rtemsTimer.h: Use public API not

View File

@@ -114,7 +114,7 @@ const rtems_status_code rtemsEvent::receive(const rtems_event_set event_in,
rtems_configuration_get_microseconds_per_tick() : micro_secs;
set_status_code(rtems_event_receive(event_in,
wait | condition,
TOD_MICROSECONDS_TO_TICKS(usecs),
RTEMS_MICROSECONDS_TO_TICKS(usecs),
&event_out));
return last_status_code();
}

View File

@@ -161,7 +161,7 @@ const rtems_status_code rtemsMessageQueue::receive(const void *buffer,
(void*) buffer,
&size,
wait ? RTEMS_WAIT : RTEMS_NO_WAIT,
TOD_MICROSECONDS_TO_TICKS(usecs)));
RTEMS_MICROSECONDS_TO_TICKS(usecs)));
}
const rtems_status_code rtemsMessageQueue::flush(uint32_t& count)

View File

@@ -135,7 +135,7 @@ const rtems_status_code rtemsSemaphore::obtain(const bool wait,
return
set_status_code(rtems_semaphore_obtain(id,
wait ? RTEMS_WAIT : RTEMS_NO_WAIT,
TOD_MICROSECONDS_TO_TICKS(usecs)));
RTEMS_MICROSECONDS_TO_TICKS(usecs)));
}
const rtems_status_code rtemsSemaphore::release(void)

View File

@@ -98,7 +98,7 @@ const rtems_status_code rtemsTimer::fire_after(const rtems_interval 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),
RTEMS_MICROSECONDS_TO_TICKS(usecs),
common_handler,
this));
}
@@ -110,7 +110,7 @@ const rtems_status_code rtemsTimer::repeat_fire_at(const rtems_interval micro_se
(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),
RTEMS_MICROSECONDS_TO_TICKS(usecs),
common_handler,
this));
}

View File

@@ -234,7 +234,7 @@ const rtems_status_code rtemsTask::wake_after(const rtems_interval micro_secs)
rtems_interval usecs =
(micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
rtems_configuration_get_microseconds_per_tick() : micro_secs;
return set_status_code(rtems_task_wake_after(TOD_MICROSECONDS_TO_TICKS(usecs)));
return set_status_code(rtems_task_wake_after(RTEMS_MICROSECONDS_TO_TICKS(usecs)));
}
const rtems_status_code rtemsTask::wake_when(const rtems_time_of_day& tod)