timeout

Chris Johns chrisj at rtems.org
Wed Dec 1 00:12:56 UTC 2004


Paul Whitfield wrote:
> 
> RTEMS ticks... and you are quite correct, it does not state
> that on the manual page. However, for all "classic" rtems calls
> that block with a time-out parameter the time-out is in ticks.
> 

I tend to use:

   TOD_MICROSECONDS_TO_TICKS ()

For example:

  /* 1 second pause. */
  rtems_task_wake_after (TOD_MICROSECONDS_TO_TICKS (1000000));

-- 
  Chris Johns



More information about the users mailing list