All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Rodolfo <rolfetas@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] loading module
Date: Wed, 23 May 2007 15:13:02 +0200	[thread overview]
Message-ID: <46543DDE.7030001@domain.hid> (raw)
In-Reply-To: <4654386C.6060309@domain.hid>

Rodolfo wrote:
> //timer_period_counts=rt_timer_set_mode(rt_timer_ns2tsc(timer_period_ns));

See
http://www.xenomai.org/documentation/branches/v2.3.x/html/api/group__native__timer.html#gffcb5eaef6c3a64a05445f6dafdbb155

the parameter of rt_timer_set_mode is a count of nanoseconds.

>     //rt_task_set_periodic(&thread, expected,
> rt_timer_ns2tsc(task_period_ns));

the task period passed to rt_task_set_periodic is a count of ticks,
which should be obtained with rt_timer_ns2ticks.

-- 
                                                 Gilles Chanteperdrix


  reply	other threads:[~2007-05-23 13:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23 12:16 [Xenomai-help] loading module Rodolfo
2007-05-23 12:34 ` Gilles Chanteperdrix
2007-05-23 12:49   ` Rodolfo
2007-05-23 13:13     ` Gilles Chanteperdrix [this message]
     [not found]     ` <1179925338.6119.56.camel@domain.hid>
2007-05-23 13:31       ` Rodolfo
     [not found]   ` <46543535.5090106@domain.hid>
2007-05-23 13:07     ` Gilles Chanteperdrix
2007-05-23 13:32       ` Rodolfo
2007-05-23 13:44         ` Gilles Chanteperdrix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46543DDE.7030001@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=rolfetas@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.