<div dir="ltr"><div>Hello,</div><div>The context is RTEMS-4.11.3 on STM32H7. </div><div>I have a timer interrupt routine and I'm calling some functions from it.</div><div>I would like to write a RTEMS task (rtems_task_create API) and call those</div><div>functions from that thread instead of calling them from interrupt context.</div><div><br></div><div>Of course, I have to call them periodically (say at 1 msec or a few msecs).</div><div>Any guidance how can I achieve that ?</div><div><br></div><div>I was thinking about registering a callback that the OS should call for me a few msecs</div><div>later, but isn't that the same thing ? I guess the OS finds when the time elapsed with </div><div>the help of the HW and calls my callback from an ISR .. am I right ?</div><div>Or if I call some wait functions in my loop and sleep for a few msesc, can I be sure</div><div>that it sleeps 3 mesc instead of a little more based on other existing tasks ?</div><div>So, how can I do this with a good precision?<br></div><div><br></div><div>regards,</div><div>Catalin</div><div><br></div></div>