From: "Thomas Häberle" <thomas.haeberle@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] rt_task_set_periodic() question
Date: Wed, 09 Jul 2008 08:32:25 +0200 [thread overview]
Message-ID: <48745B79.7020100@domain.hid> (raw)
Hello!
I am using Xenomai 2.3.5 with a Linux Kernel 2.4 on an MPC5200.
One of my periodic Xenomai tasks has to be rescheduled now and than for
some -for the question unimportant- reasons.
To do so I
1.) get the next planed release point with "rt_task_inquire(NULL,
&tt_info)"
2.) add the desired delay to the sheduling point with "t_start =
RTIME(tt_info.relpoint + delay)"
(delay is always a positive value)
3.) call "rt_task_set_periodict_task_set_periodic( NULL, t_start,
ONE_MS)" to reshedule the task
From step 3 I get the return value "-110" which is "ETIMEDOUT" (AFAIK)
thus according to the Xenomai-documentation the calculated new
sheduling point allready passed.
I miss the point where I do something wrong!?!?
It doesn't seem to matter how much I increase "t_start", the return
value stays at -110,
so I guess I missunderstood the usage of one of the functions!?!?
Any hints or suggestions?
Thanks & Greetings,
Thomas
next reply other threads:[~2008-07-09 6:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-09 6:32 Thomas Häberle [this message]
2008-07-09 8:14 ` [Xenomai-help] rt_task_set_periodic() question 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=48745B79.7020100@domain.hid \
--to=thomas.haeberle@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.