Changeset bbd7ea2 in rtems


Ignore:
Timestamp:
Dec 16, 2008, 3:58:50 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
b3a4579e
Parents:
2b9968a
Message:

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

  • include/rtems++/rtemsEvent.h, include/rtems++/rtemsMessageQueue.h, include/rtems++/rtemsSemaphore.h, src/rtemsTask.cc: Use public API not _TOD_Microseconds_per_tick.
Location:
c/src/librtems++
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • c/src/librtems++/ChangeLog

    r2b9968a rbbd7ea2  
     12008-12-16      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * include/rtems++/rtemsEvent.h, include/rtems++/rtemsMessageQueue.h,
     4        include/rtems++/rtemsSemaphore.h, src/rtemsTask.cc: Use public API
     5        not _TOD_Microseconds_per_tick.
     6
    172008-09-05      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • c/src/librtems++/include/rtems++/rtemsEvent.h

    r2b9968a rbbd7ea2  
    111111{
    112112  rtems_interval usecs =
    113     micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
    114     _TOD_Microseconds_per_tick : micro_secs;
     113    (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
     114    rtems_configuration_get_microseconds_per_tick() : micro_secs;
    115115  set_status_code(rtems_event_receive(event_in,
    116116                                      wait | condition,
  • c/src/librtems++/include/rtems++/rtemsMessageQueue.h

    r2b9968a rbbd7ea2  
    156156{
    157157  rtems_interval usecs =
    158     micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
    159     _TOD_Microseconds_per_tick : micro_secs;
     158    (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
     159    rtems_configuration_get_microseconds_per_tick() : micro_secs;
    160160  return set_status_code(rtems_message_queue_receive(id,
    161161                                                     (void*) buffer,
  • c/src/librtems++/include/rtems++/rtemsSemaphore.h

    r2b9968a rbbd7ea2  
    129129                                               const uint32_t micro_secs)
    130130{
    131   rtems_interval usecs =
    132     micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
    133     _TOD_Microseconds_per_tick : micro_secs;
     131  rtems_interval usecs = micro_secs &&
     132    (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
     133    rtems_configuration_get_microseconds_per_tick() : micro_secs;
     134
    134135  return
    135136    set_status_code(rtems_semaphore_obtain(id,
  • c/src/librtems++/src/rtemsTask.cc

    r2b9968a rbbd7ea2  
    233233{
    234234  rtems_interval usecs =
    235     micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
    236     _TOD_Microseconds_per_tick : micro_secs;
     235    (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
     236    rtems_configuration_get_microseconds_per_tick() : micro_secs;
    237237  return set_status_code(rtems_task_wake_after(TOD_MICROSECONDS_TO_TICKS(usecs)));
    238238}
Note: See TracChangeset for help on using the changeset viewer.