RTEMS Logo

RTEMS 4.9.2 On-Line Library


Timer Manager TIMER_RESET - Reset an interval timer

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

8.4.10: TIMER_RESET - Reset an interval timer

CALLING SEQUENCE:

procedure Timer_Reset (
   ID     : in     RTEMS.ID;
   Result :    out RTEMS.Status_Codes
);

DIRECTIVE 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

DESCRIPTION:

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.

NOTES:

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.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2008 OAR Corporation