All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] rt_task_set_periodic
@ 2013-11-21 19:45 Alex Martin
  2013-11-21 21:01 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Martin @ 2013-11-21 19:45 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,

I want to adjust the period set for rt_task_set_periodic. 

It is required to adjust the period value at run time when task is running.
I want to adjust the task period to external clock.

period will about 5 milli seconds.( I set it to 5e6 ). There will be always difference between two clocks. I want to adjust dynamically during run time period of the xenomai task to match external clock.

Which function can be used.

Best regards,

Alex.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai] rt_task_set_periodic
  2013-11-21 19:45 [Xenomai] rt_task_set_periodic Alex Martin
@ 2013-11-21 21:01 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2013-11-21 21:01 UTC (permalink / raw)
  To: Alex Martin, xenomai@xenomai.org

On 11/21/2013 08:45 PM, Alex Martin wrote:
> Hi,
>
> I want to adjust the period set for rt_task_set_periodic.
>
> It is required to adjust the period value at run time when task is running.
> I want to adjust the task period to external clock.
>
> period will about 5 milli seconds.( I set it to 5e6 ). There will be always difference between two clocks. I want to adjust dynamically during run time period of the xenomai task to match external clock.
>
> Which function can be used.
>

Simply issue rt_task_set_periodic again, with the adjusted period.

> Best regards,
>
> Alex.
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
>


-- 
Philippe.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-21 21:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21 19:45 [Xenomai] rt_task_set_periodic Alex Martin
2013-11-21 21:01 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.