Changeset 7fea679b in rtems
- Timestamp:
- 09/06/96 15:16:19 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 2ffcc2ed
- Parents:
- 65c421f
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/rtems/src/clock.c
r65c421f r7fea679b 49 49 switch ( option ) { 50 50 case RTEMS_CLOCK_GET_TOD: 51 if ( !_TOD_Is_set ())51 if ( !_TOD_Is_set ) 52 52 return RTEMS_NOT_DEFINED; 53 53 … … 56 56 57 57 case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: 58 if ( !_TOD_Is_set ())58 if ( !_TOD_Is_set ) 59 59 return RTEMS_NOT_DEFINED; 60 60 … … 71 71 72 72 case RTEMS_CLOCK_GET_TIME_VALUE: 73 if ( !_TOD_Is_set ())73 if ( !_TOD_Is_set ) 74 74 return RTEMS_NOT_DEFINED; 75 75 -
c/src/exec/rtems/src/rtclock.c
r65c421f r7fea679b 49 49 switch ( option ) { 50 50 case RTEMS_CLOCK_GET_TOD: 51 if ( !_TOD_Is_set ())51 if ( !_TOD_Is_set ) 52 52 return RTEMS_NOT_DEFINED; 53 53 … … 56 56 57 57 case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: 58 if ( !_TOD_Is_set ())58 if ( !_TOD_Is_set ) 59 59 return RTEMS_NOT_DEFINED; 60 60 … … 71 71 72 72 case RTEMS_CLOCK_GET_TIME_VALUE: 73 if ( !_TOD_Is_set ())73 if ( !_TOD_Is_set ) 74 74 return RTEMS_NOT_DEFINED; 75 75 -
c/src/exec/rtems/src/rtemstimer.c
r65c421f r7fea679b 278 278 rtems_interval seconds; 279 279 280 if ( !_TOD_Is_set ())280 if ( !_TOD_Is_set ) 281 281 return RTEMS_NOT_DEFINED; 282 282 -
c/src/exec/rtems/src/tasks.c
r65c421f r7fea679b 1035 1035 Watchdog_Interval seconds; 1036 1036 1037 if ( !_TOD_Is_set ())1037 if ( !_TOD_Is_set ) 1038 1038 return RTEMS_NOT_DEFINED; 1039 1039 -
c/src/exec/rtems/src/timer.c
r65c421f r7fea679b 278 278 rtems_interval seconds; 279 279 280 if ( !_TOD_Is_set ())280 if ( !_TOD_Is_set ) 281 281 return RTEMS_NOT_DEFINED; 282 282 -
c/src/exec/score/headers/tod.h
r65c421f r7fea679b 69 69 70 70 /* 71 * The following is TRUE if the application has set the current 72 * time of day, and FALSE otherwise. 73 */ 74 75 SCORE_EXTERN boolean _TOD_Is_set; 76 77 /* 71 78 * The following contains the current time of day. 72 79 */ -
c/src/exec/score/include/rtems/score/tod.h
r65c421f r7fea679b 69 69 70 70 /* 71 * The following is TRUE if the application has set the current 72 * time of day, and FALSE otherwise. 73 */ 74 75 SCORE_EXTERN boolean _TOD_Is_set; 76 77 /* 71 78 * The following contains the current time of day. 72 79 */ -
c/src/exec/score/inline/rtems/score/tod.inl
r65c421f r7fea679b 17 17 #ifndef __TIME_OF_DAY_inl 18 18 #define __TIME_OF_DAY_inl 19 20 /*PAGE21 *22 * _TOD_Is_set23 *24 * DESCRIPTION:25 *26 * This function returns TRUE if the application has set the current27 * 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 }34 19 35 20 /*PAGE -
c/src/exec/score/inline/tod.inl
r65c421f r7fea679b 17 17 #ifndef __TIME_OF_DAY_inl 18 18 #define __TIME_OF_DAY_inl 19 20 /*PAGE21 *22 * _TOD_Is_set23 *24 * DESCRIPTION:25 *26 * This function returns TRUE if the application has set the current27 * 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 }34 19 35 20 /*PAGE -
c/src/exec/score/macros/rtems/score/tod.inl
r65c421f r7fea679b 17 17 #ifndef __TIME_OF_DAY_inl 18 18 #define __TIME_OF_DAY_inl 19 20 /*PAGE21 *22 * _TOD_Is_set23 *24 */25 26 #define _TOD_Is_set() \27 _Watchdog_Is_active( &_TOD_Seconds_watchdog )28 19 29 20 /*PAGE -
c/src/exec/score/macros/tod.inl
r65c421f r7fea679b 17 17 #ifndef __TIME_OF_DAY_inl 18 18 #define __TIME_OF_DAY_inl 19 20 /*PAGE21 *22 * _TOD_Is_set23 *24 */25 26 #define _TOD_Is_set() \27 _Watchdog_Is_active( &_TOD_Seconds_watchdog )28 19 29 20 /*PAGE -
c/src/exec/score/src/coretod.c
r65c421f r7fea679b 55 55 56 56 _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL ); 57 58 _TOD_Is_set = FALSE; 59 _TOD_Activate( _TOD_Ticks_per_second ); 57 60 } 58 61 … … 94 97 _TOD_Current = *the_tod; 95 98 _TOD_Seconds_since_epoch = seconds_since_epoch; 99 _TOD_Is_set = TRUE; 96 100 _TOD_Activate( ticks_until_next_second ); 97 101 -
c/src/exec/score/src/tod.c
r65c421f r7fea679b 55 55 56 56 _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL ); 57 58 _TOD_Is_set = FALSE; 59 _TOD_Activate( _TOD_Ticks_per_second ); 57 60 } 58 61 … … 94 97 _TOD_Current = *the_tod; 95 98 _TOD_Seconds_since_epoch = seconds_since_epoch; 99 _TOD_Is_set = TRUE; 96 100 _TOD_Activate( ticks_until_next_second ); 97 101 -
cpukit/rtems/src/rtclock.c
r65c421f r7fea679b 49 49 switch ( option ) { 50 50 case RTEMS_CLOCK_GET_TOD: 51 if ( !_TOD_Is_set ())51 if ( !_TOD_Is_set ) 52 52 return RTEMS_NOT_DEFINED; 53 53 … … 56 56 57 57 case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: 58 if ( !_TOD_Is_set ())58 if ( !_TOD_Is_set ) 59 59 return RTEMS_NOT_DEFINED; 60 60 … … 71 71 72 72 case RTEMS_CLOCK_GET_TIME_VALUE: 73 if ( !_TOD_Is_set ())73 if ( !_TOD_Is_set ) 74 74 return RTEMS_NOT_DEFINED; 75 75 -
cpukit/rtems/src/rtemstimer.c
r65c421f r7fea679b 278 278 rtems_interval seconds; 279 279 280 if ( !_TOD_Is_set ())280 if ( !_TOD_Is_set ) 281 281 return RTEMS_NOT_DEFINED; 282 282 -
cpukit/rtems/src/tasks.c
r65c421f r7fea679b 1035 1035 Watchdog_Interval seconds; 1036 1036 1037 if ( !_TOD_Is_set ())1037 if ( !_TOD_Is_set ) 1038 1038 return RTEMS_NOT_DEFINED; 1039 1039 -
cpukit/score/include/rtems/score/tod.h
r65c421f r7fea679b 69 69 70 70 /* 71 * The following is TRUE if the application has set the current 72 * time of day, and FALSE otherwise. 73 */ 74 75 SCORE_EXTERN boolean _TOD_Is_set; 76 77 /* 71 78 * The following contains the current time of day. 72 79 */ -
cpukit/score/inline/rtems/score/tod.inl
r65c421f r7fea679b 17 17 #ifndef __TIME_OF_DAY_inl 18 18 #define __TIME_OF_DAY_inl 19 20 /*PAGE21 *22 * _TOD_Is_set23 *24 * DESCRIPTION:25 *26 * This function returns TRUE if the application has set the current27 * 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 }34 19 35 20 /*PAGE -
cpukit/score/macros/rtems/score/tod.inl
r65c421f r7fea679b 17 17 #ifndef __TIME_OF_DAY_inl 18 18 #define __TIME_OF_DAY_inl 19 20 /*PAGE21 *22 * _TOD_Is_set23 *24 */25 26 #define _TOD_Is_set() \27 _Watchdog_Is_active( &_TOD_Seconds_watchdog )28 19 29 20 /*PAGE -
cpukit/score/src/coretod.c
r65c421f r7fea679b 55 55 56 56 _Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL ); 57 58 _TOD_Is_set = FALSE; 59 _TOD_Activate( _TOD_Ticks_per_second ); 57 60 } 58 61 … … 94 97 _TOD_Current = *the_tod; 95 98 _TOD_Seconds_since_epoch = seconds_since_epoch; 99 _TOD_Is_set = TRUE; 96 100 _TOD_Activate( ticks_until_next_second ); 97 101
Note: See TracChangeset
for help on using the changeset viewer.