From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Julien Delange <julien.delange@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Kernel configuration suggestions/hints
Date: Tue, 04 Oct 2011 15:45:14 +0200 [thread overview]
Message-ID: <4E8B0DEA.8030102@domain.hid> (raw)
In-Reply-To: <CAGc_wL11cKQhxRmgYB0wU-bFii3YaqjibjgWB+=Tob3tFjsfQQ@mail.gmail.com>
On 10/04/2011 03:06 PM, Julien Delange wrote:
> void polling_task(void * arg)
> {
> int i;
> double tmp;
> int ret;
> uint8_t raw[128 * 16];
> double rate = 0.0001;
Your "rate" looks more like a period to me (that is, the reciprocal).
The corresponding rate would be 10000.
> int result;
> unsigned long missed;
> a4l_insn_t insn_tab[16];
> a4l_insnlst_t insnlst;
>
>
> insnlst.count = 16;
> insnlst.insns = insn_tab;
>
> for (i=0; i<16; i++)
> {
> insn_tab[i].type = A4L_INSN_READ;
> insn_tab[i].idx_subd = 0;
> insn_tab[i].chan_desc = chdesc[i];
> insn_tab[i].data_size = 8;
> insn_tab[i].data = &raw[128 * i];
> }
> rt_task_set_periodic(NULL, TM_NOW, rate * 1000000000.0);
1000000000.0 * 0.0001 is 100000, that is 100us, not 1ms. As of why you
get 2ms (or 200us, maybe ?) is still a mystery. Could you send us your
kernel configuration?
Are not the analogy calls blocking?
--
Gilles.
next prev parent reply other threads:[~2011-10-04 13:45 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-04 8:42 [Xenomai-help] Kernel configuration suggestions/hints Julien Delange
2011-10-04 11:16 ` Gilles Chanteperdrix
2011-10-04 13:06 ` Julien Delange
2011-10-04 13:40 ` Fernando Herrero Carrón
2011-10-04 13:45 ` Gilles Chanteperdrix [this message]
2011-10-04 13:51 ` Julien Delange
2011-10-04 16:41 ` Gilles Chanteperdrix
2011-10-05 7:48 ` Julien Delange
2011-10-05 11:09 ` Gilles Chanteperdrix
2011-10-05 14:39 ` Fernando Herrero Carrón
2011-10-05 21:28 ` Alexis Berlemont
2011-10-05 22:55 ` Fernando Herrero Carrón
2011-10-06 7:25 ` Julien Delange
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=4E8B0DEA.8030102@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=julien.delange@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.