From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Stefan Schaal <sschaal@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>, Linus Casassa <linus@domain.hid>
Subject: Re: [Xenomai-help] Gumstix arm pxa
Date: Mon, 09 Nov 2009 22:32:39 +0100 [thread overview]
Message-ID: <4AF88A77.4030902@domain.hid> (raw)
In-Reply-To: <748872BF-565F-4637-BDBC-6534B04DFA24@domain.hid>
Stefan Schaal wrote:
> Hi Gilles,
>
> if aperiodic has better accuracy, what is the minimal time
> resolution one can obtain, e.g., on a x86 (I assume that asking for
> too short a wait can lead to system freezes)? Coming from the vxWorks
The sleep time resolution is bound to the frequency of the hardware
timer used. I do not know x86 details that much, but I seem to remember
that the 8254 timer, the worst one, has a frequency around 1 MHz, which
gives you a resolution of 1us, enough for most uses I believe.
> philosophy, we have been running a 100000ns periodic clock (x86) to
> work with semaphores and timing statements. Seemingly, you recommend
> not to use the periodic clock. The rt_timer_ns2ticks and
> rt_timer_ticks2ns seem to return 0 if the aperiodic clock is used. Is
> this reasonable, or should they return that ticks and nanoseconds have
> the same value in this case?
>
> Sorry, I am just learning about this different way of using a ROS.
either your system is misconfigured (if you have a periodic timer, any
time duration smaller than the timer period will give you a duration of
0 ticks, results are rounded toward 0), or there is a bug somewhere.
cat /proc/xenomai/timebases will tell you.
What xenomai version are you using exactly ?
--
Gilles.
prev parent reply other threads:[~2009-11-09 21:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-07 15:04 [Xenomai-help] Gumstix arm pxa Linus Casassa
2009-11-07 16:06 ` Gilles Chanteperdrix
2009-11-08 7:06 ` Linus Casassa
2009-11-08 11:23 ` Gilles Chanteperdrix
2009-11-08 15:28 ` Gilles Chanteperdrix
2009-11-08 17:22 ` Linus Casassa
2009-11-08 17:36 ` Gilles Chanteperdrix
2009-11-09 19:45 ` Stefan Schaal
2009-11-09 21:32 ` Gilles Chanteperdrix [this message]
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=4AF88A77.4030902@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=linus@domain.hid \
--cc=sschaal@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.