Changeset 7fea679b in rtems


Ignore:
Timestamp:
Sep 6, 1996, 3:16:19 PM (24 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2ffcc2ed
Parents:
65c421f
Message:

changed _TOD_Is_set from a function to a boolean variable

Files:
20 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/src/clock.c

    r65c421f r7fea679b  
    4949  switch ( option ) {
    5050    case RTEMS_CLOCK_GET_TOD:
    51       if ( !_TOD_Is_set() )
     51      if ( !_TOD_Is_set )
    5252        return RTEMS_NOT_DEFINED;
    5353
     
    5656
    5757    case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH:
    58       if ( !_TOD_Is_set() )
     58      if ( !_TOD_Is_set )
    5959        return RTEMS_NOT_DEFINED;
    6060
     
    7171
    7272    case RTEMS_CLOCK_GET_TIME_VALUE:
    73       if ( !_TOD_Is_set() )
     73      if ( !_TOD_Is_set )
    7474        return RTEMS_NOT_DEFINED;
    7575
  • c/src/exec/rtems/src/rtclock.c

    r65c421f r7fea679b  
    4949  switch ( option ) {
    5050    case RTEMS_CLOCK_GET_TOD:
    51       if ( !_TOD_Is_set() )
     51      if ( !_TOD_Is_set )
    5252        return RTEMS_NOT_DEFINED;
    5353
     
    5656
    5757    case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH:
    58       if ( !_TOD_Is_set() )
     58      if ( !_TOD_Is_set )
    5959        return RTEMS_NOT_DEFINED;
    6060
     
    7171
    7272    case RTEMS_CLOCK_GET_TIME_VALUE:
    73       if ( !_TOD_Is_set() )
     73      if ( !_TOD_Is_set )
    7474        return RTEMS_NOT_DEFINED;
    7575
  • c/src/exec/rtems/src/rtemstimer.c

    r65c421f r7fea679b  
    278278  rtems_interval       seconds;
    279279
    280   if ( !_TOD_Is_set() )
     280  if ( !_TOD_Is_set )
    281281    return RTEMS_NOT_DEFINED;
    282282
  • c/src/exec/rtems/src/tasks.c

    r65c421f r7fea679b  
    10351035  Watchdog_Interval   seconds;
    10361036
    1037   if ( !_TOD_Is_set() )
     1037  if ( !_TOD_Is_set )
    10381038    return RTEMS_NOT_DEFINED;
    10391039
  • c/src/exec/rtems/src/timer.c

    r65c421f r7fea679b  
    278278  rtems_interval       seconds;
    279279
    280   if ( !_TOD_Is_set() )
     280  if ( !_TOD_Is_set )
    281281    return RTEMS_NOT_DEFINED;
    282282
  • c/src/exec/score/headers/tod.h

    r65c421f r7fea679b  
    6969
    7070/*
     71 *  The following is TRUE if the application has set the current
     72 *  time of day, and FALSE otherwise.
     73 */
     74
     75SCORE_EXTERN boolean _TOD_Is_set;
     76
     77/*
    7178 *  The following contains the current time of day.
    7279 */
  • c/src/exec/score/include/rtems/score/tod.h

    r65c421f r7fea679b  
    6969
    7070/*
     71 *  The following is TRUE if the application has set the current
     72 *  time of day, and FALSE otherwise.
     73 */
     74
     75SCORE_EXTERN boolean _TOD_Is_set;
     76
     77/*
    7178 *  The following contains the current time of day.
    7279 */
  • c/src/exec/score/inline/rtems/score/tod.inl

    r65c421f r7fea679b  
    1717#ifndef __TIME_OF_DAY_inl
    1818#define __TIME_OF_DAY_inl
    19 
    20 /*PAGE
    21  *
    22  *  _TOD_Is_set
    23  *
    24  *  DESCRIPTION:
    25  *
    26  *  This function returns TRUE if the application has set the current
    27  *  time of day, and FALSE otherwise.
    28  */
    29 
    30 RTEMS_INLINE_ROUTINE boolean _TOD_Is_set( void )
    31 {
    32   return _Watchdog_Is_active( &_TOD_Seconds_watchdog );
    33 }
    3419
    3520/*PAGE
  • c/src/exec/score/inline/tod.inl

    r65c421f r7fea679b  
    1717#ifndef __TIME_OF_DAY_inl
    1818#define __TIME_OF_DAY_inl
    19 
    20 /*PAGE
    21  *
    22  *  _TOD_Is_set
    23  *
    24  *  DESCRIPTION:
    25  *
    26  *  This function returns TRUE if the application has set the current
    27  *  time of day, and FALSE otherwise.
    28  */
    29 
    30 RTEMS_INLINE_ROUTINE boolean _TOD_Is_set( void )
    31 {
    32   return _Watchdog_Is_active( &_TOD_Seconds_watchdog );
    33 }
    3419
    3520/*PAGE
  • c/src/exec/score/macros/rtems/score/tod.inl

    r65c421f r7fea679b  
    1717#ifndef __TIME_OF_DAY_inl
    1818#define __TIME_OF_DAY_inl
    19 
    20 /*PAGE
    21  *
    22  *  _TOD_Is_set
    23  *
    24  */
    25 
    26 #define _TOD_Is_set() \
    27   _Watchdog_Is_active( &_TOD_Seconds_watchdog )
    2819
    2920/*PAGE
  • c/src/exec/score/macros/tod.inl

    r65c421f r7fea679b  
    1717#ifndef __TIME_OF_DAY_inl
    1818#define __TIME_OF_DAY_inl
    19 
    20 /*PAGE
    21  *
    22  *  _TOD_Is_set
    23  *
    24  */
    25 
    26 #define _TOD_Is_set() \
    27   _Watchdog_Is_active( &_TOD_Seconds_watchdog )
    2819
    2920/*PAGE
  • c/src/exec/score/src/coretod.c

    r65c421f r7fea679b  
    5555
    5656  _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL );
     57
     58  _TOD_Is_set = FALSE;
     59  _TOD_Activate( _TOD_Ticks_per_second );
    5760}
    5861
     
    9497  _TOD_Current             = *the_tod;
    9598  _TOD_Seconds_since_epoch = seconds_since_epoch;
     99  _TOD_Is_set              = TRUE;
    96100  _TOD_Activate( ticks_until_next_second );
    97101
  • c/src/exec/score/src/tod.c

    r65c421f r7fea679b  
    5555
    5656  _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL );
     57
     58  _TOD_Is_set = FALSE;
     59  _TOD_Activate( _TOD_Ticks_per_second );
    5760}
    5861
     
    9497  _TOD_Current             = *the_tod;
    9598  _TOD_Seconds_since_epoch = seconds_since_epoch;
     99  _TOD_Is_set              = TRUE;
    96100  _TOD_Activate( ticks_until_next_second );
    97101
  • cpukit/rtems/src/rtclock.c

    r65c421f r7fea679b  
    4949  switch ( option ) {
    5050    case RTEMS_CLOCK_GET_TOD:
    51       if ( !_TOD_Is_set() )
     51      if ( !_TOD_Is_set )
    5252        return RTEMS_NOT_DEFINED;
    5353
     
    5656
    5757    case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH:
    58       if ( !_TOD_Is_set() )
     58      if ( !_TOD_Is_set )
    5959        return RTEMS_NOT_DEFINED;
    6060
     
    7171
    7272    case RTEMS_CLOCK_GET_TIME_VALUE:
    73       if ( !_TOD_Is_set() )
     73      if ( !_TOD_Is_set )
    7474        return RTEMS_NOT_DEFINED;
    7575
  • cpukit/rtems/src/rtemstimer.c

    r65c421f r7fea679b  
    278278  rtems_interval       seconds;
    279279
    280   if ( !_TOD_Is_set() )
     280  if ( !_TOD_Is_set )
    281281    return RTEMS_NOT_DEFINED;
    282282
  • cpukit/rtems/src/tasks.c

    r65c421f r7fea679b  
    10351035  Watchdog_Interval   seconds;
    10361036
    1037   if ( !_TOD_Is_set() )
     1037  if ( !_TOD_Is_set )
    10381038    return RTEMS_NOT_DEFINED;
    10391039
  • cpukit/score/include/rtems/score/tod.h

    r65c421f r7fea679b  
    6969
    7070/*
     71 *  The following is TRUE if the application has set the current
     72 *  time of day, and FALSE otherwise.
     73 */
     74
     75SCORE_EXTERN boolean _TOD_Is_set;
     76
     77/*
    7178 *  The following contains the current time of day.
    7279 */
  • cpukit/score/inline/rtems/score/tod.inl

    r65c421f r7fea679b  
    1717#ifndef __TIME_OF_DAY_inl
    1818#define __TIME_OF_DAY_inl
    19 
    20 /*PAGE
    21  *
    22  *  _TOD_Is_set
    23  *
    24  *  DESCRIPTION:
    25  *
    26  *  This function returns TRUE if the application has set the current
    27  *  time of day, and FALSE otherwise.
    28  */
    29 
    30 RTEMS_INLINE_ROUTINE boolean _TOD_Is_set( void )
    31 {
    32   return _Watchdog_Is_active( &_TOD_Seconds_watchdog );
    33 }
    3419
    3520/*PAGE
  • cpukit/score/macros/rtems/score/tod.inl

    r65c421f r7fea679b  
    1717#ifndef __TIME_OF_DAY_inl
    1818#define __TIME_OF_DAY_inl
    19 
    20 /*PAGE
    21  *
    22  *  _TOD_Is_set
    23  *
    24  */
    25 
    26 #define _TOD_Is_set() \
    27   _Watchdog_Is_active( &_TOD_Seconds_watchdog )
    2819
    2920/*PAGE
  • cpukit/score/src/coretod.c

    r65c421f r7fea679b  
    5555
    5656  _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL );
     57
     58  _TOD_Is_set = FALSE;
     59  _TOD_Activate( _TOD_Ticks_per_second );
    5760}
    5861
     
    9497  _TOD_Current             = *the_tod;
    9598  _TOD_Seconds_since_epoch = seconds_since_epoch;
     99  _TOD_Is_set              = TRUE;
    96100  _TOD_Activate( ticks_until_next_second );
    97101
Note: See TracChangeset for help on using the changeset viewer.