procedure Timer_Reset ( ID : in RTEMS.ID; Result : out RTEMS.Status_Codes );
RTEMS.SUCCESSFUL
- timer reset successfully
RTEMS.INVALID_ID
- invalid timer id
RTEMS.NOT_DEFINED
- attempted to reset a when or newly created timer
This directive resets the timer associated with id.
This timer must have been previously initiated with either the
rtems.timer_fire_after
or
rtems.timer_server_fire_after
directive. If active the timer is canceled,
after which the timer is reinitiated using the same interval and
timer service routine which the original
rtems.timer_fire_after
rtems.timer_server_fire_after
directive used.
If the timer has not been used or the last usage of this timer
was by a rtems.timer_fire_when
or
rtems.timer_server_fire_when
directive, then the RTEMS.NOT_DEFINED
error is
returned.
Restarting a cancelled after timer results in the timer being reinitiated with its previous timer service routine and interval.
This directive will not cause the running task to be preempted.
Copyright © 1988-2008 OAR Corporation