Q about rtems_timer_fire_after

Joel Sherrill <joel@OARcorp.com> joel.sherrill at OARcorp.com
Thu Sep 9 13:01:40 UTC 2004


Chris Johns wrote:
> mikeci at acm.org wrote:
> 
>>
>> I have a question about function rtems_timer_fire_after. Can this routine
>> be called in ISR context?
>>
> 
> Yes. Joel and I have just been looking over this code and this call can 
> be made while in an ISR.
> 

If your TSR shouldn't be called from an ISR, then you should use
the alternative versions which use a timer server.  See:

   + rtems_timer_server_initiate
   + rtems_timer_server_fire_after
   + rtems_timer_server_fire_when

They were added to support TSRs which cannot be called from ISRs.

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985




More information about the users mailing list