forked from Imagelibrary/rtems
2000-08-15 Joel Sherrill <joel@OARcorp.com>
* posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get to use SuperCore _TOD_Current variable.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2000-08-15 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get
|
||||||
|
to use SuperCore _TOD_Current variable.
|
||||||
|
|
||||||
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* ChangeLog: New file.
|
* ChangeLog: New file.
|
||||||
|
|||||||
@@ -260,8 +260,7 @@ rtems_timer_service_routine FIRE_TIMER_S (rtems_id timer, void *data)
|
|||||||
|
|
||||||
/* Stores the time when the timer was started again */
|
/* Stores the time when the timer was started again */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
|
timer_struct[timer_pos].time = _TOD_Current;
|
||||||
&timer_struct[timer_pos].time );
|
|
||||||
|
|
||||||
/* The state has not to be actualized, because nothing modifies it */
|
/* The state has not to be actualized, because nothing modifies it */
|
||||||
|
|
||||||
@@ -399,7 +398,6 @@ int timer_create(
|
|||||||
PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
|
PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
|
||||||
|
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
|
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
|
|
||||||
@@ -610,9 +608,7 @@ int timer_settime(
|
|||||||
|
|
||||||
/* Stores the time in which the timer was started again */
|
/* Stores the time in which the timer was started again */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
|
timer_struct[timer_pos].time = _TOD_Current;
|
||||||
&timer_struct[timer_pos].time );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -686,8 +682,7 @@ int timer_settime(
|
|||||||
|
|
||||||
/* Stores the time in which the timer was started again */
|
/* Stores the time in which the timer was started again */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
|
timer_struct[timer_pos].time = _TOD_Current;
|
||||||
&timer_struct[timer_pos].time );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@@ -780,7 +775,7 @@ int timer_gettime(
|
|||||||
|
|
||||||
/* Reads the current time */
|
/* Reads the current time */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD, ¤t_time );
|
current_time = _TOD_Current;
|
||||||
|
|
||||||
timer_pos = TIMER_POSITION_F ( timerid );
|
timer_pos = TIMER_POSITION_F ( timerid );
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2000-08-15 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* posix/src/ptimer1.c (timer_settime): Converted use of rtems_clock_get
|
||||||
|
to use SuperCore _TOD_Current variable.
|
||||||
|
|
||||||
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
2000-08-10 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* ChangeLog: New file.
|
* ChangeLog: New file.
|
||||||
|
|||||||
@@ -260,8 +260,7 @@ rtems_timer_service_routine FIRE_TIMER_S (rtems_id timer, void *data)
|
|||||||
|
|
||||||
/* Stores the time when the timer was started again */
|
/* Stores the time when the timer was started again */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
|
timer_struct[timer_pos].time = _TOD_Current;
|
||||||
&timer_struct[timer_pos].time );
|
|
||||||
|
|
||||||
/* The state has not to be actualized, because nothing modifies it */
|
/* The state has not to be actualized, because nothing modifies it */
|
||||||
|
|
||||||
@@ -399,7 +398,6 @@ int timer_create(
|
|||||||
PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
|
PRINT_MSG_S ("ERROR: rtems create timer RTEMS_INVALID_NAME");
|
||||||
|
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
|
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
|
|
||||||
@@ -610,9 +608,7 @@ int timer_settime(
|
|||||||
|
|
||||||
/* Stores the time in which the timer was started again */
|
/* Stores the time in which the timer was started again */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
|
timer_struct[timer_pos].time = _TOD_Current;
|
||||||
&timer_struct[timer_pos].time );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -686,8 +682,7 @@ int timer_settime(
|
|||||||
|
|
||||||
/* Stores the time in which the timer was started again */
|
/* Stores the time in which the timer was started again */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD,
|
timer_struct[timer_pos].time = _TOD_Current;
|
||||||
&timer_struct[timer_pos].time );
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
@@ -780,7 +775,7 @@ int timer_gettime(
|
|||||||
|
|
||||||
/* Reads the current time */
|
/* Reads the current time */
|
||||||
|
|
||||||
return_v = rtems_clock_get ( RTEMS_CLOCK_GET_TOD, ¤t_time );
|
current_time = _TOD_Current;
|
||||||
|
|
||||||
timer_pos = TIMER_POSITION_F ( timerid );
|
timer_pos = TIMER_POSITION_F ( timerid );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user