Re: [Xenomai-core] RTDM timeout value

2007-08-30 Thread Philippe Gerum
On Wed, 2007-08-29 at 17:28 +0200, Jan Kiszka wrote: Philippe Gerum wrote: On Wed, 2007-08-29 at 16:32 +0200, Jan Kiszka wrote: Markus Osterried (BA/EDD) wrote: Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The

[Xenomai-core] RTDM timeout value

2007-08-29 Thread Markus Osterried (BA/EDD)
Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The timeout in nanoseconds is converted to ticks and the number of ticks is rounded down. So when we want to wait e.g. 50 nanoseconds and the timertick is 1 ms, xnpod_ns2ticks()

Re: [Xenomai-core] RTDM timeout value

2007-08-29 Thread Jan Kiszka
Markus Osterried (BA/EDD) wrote: Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The timeout in nanoseconds is converted to ticks and the number of ticks is rounded down. So when we want to wait e.g. 50 nanoseconds and the

Re: [Xenomai-core] RTDM timeout value

2007-08-29 Thread Gilles Chanteperdrix
On 8/29/07, Philippe Gerum [EMAIL PROTECTED] wrote: On Wed, 2007-08-29 at 16:32 +0200, Jan Kiszka wrote: Markus Osterried (BA/EDD) wrote: Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The timeout in nanoseconds is

Re: [Xenomai-core] RTDM timeout value

2007-08-29 Thread Philippe Gerum
On Wed, 2007-08-29 at 16:32 +0200, Jan Kiszka wrote: Markus Osterried (BA/EDD) wrote: Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The timeout in nanoseconds is converted to ticks and the number of ticks is rounded

Re: [Xenomai-core] RTDM timeout value

2007-08-29 Thread Jan Kiszka
Philippe Gerum wrote: On Wed, 2007-08-29 at 16:32 +0200, Jan Kiszka wrote: Markus Osterried (BA/EDD) wrote: Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The timeout in nanoseconds is converted to ticks and the number of