RTEMS Logo

RTEMS 4.9.2 On-Line Library


Timer Manager TIMER_FIRE_AFTER - Fire timer after interval

PREV UP NEXT Bookshelf RTEMS C User's Guide

8.4.5: TIMER_FIRE_AFTER - Fire timer after interval

CALLING SEQUENCE:

rtems_status_code rtems_timer_fire_after(
  rtems_id                           id,
  rtems_interval                     ticks,
  rtems_timer_service_routine_entry  routine,
  void                              *user_data
);

DIRECTIVE STATUS CODES:

RTEMS_SUCCESSFUL - timer initiated successfully
RTEMS_INVALID_ADDRESS - routine is NULL
RTEMS_INVALID_ID - invalid timer id
RTEMS_INVALID_NUMBER - invalid interval

DESCRIPTION:

This directive initiates the timer specified by id. If the timer is running, it is automatically canceled before being initiated. The timer is scheduled to fire after an interval ticks clock ticks has passed. When the timer fires, the timer service routine routine will be invoked with the argument user_data.

NOTES:

This directive will not cause the running task to be preempted.


PREV UP NEXT Bookshelf RTEMS C User's Guide

Copyright © 1988-2008 OAR Corporation