Sorry I didn't paste my code, http://pastebin.ca/694397
The output from it is:
sandbox:/home/bkw/code/driver# ./simpledriver
0
test1
And then it exits, no test2 printed at all.. :/
And nothing in the while loop seem to write to the serialport as I expected.
what am I doing wrong?
/Bachman
On 12/09/2007, Gilles Chanteperdrix <[EMAIL PROTECTED]> wrote:
> On 9/12/07, Gilles Chanteperdrix <[EMAIL PROTECTED]> wrote:
> > On 9/12/07, Bachman Kharazmi <[EMAIL PROTECTED]> wrote:
> > > another example which confuse me:
> > > ##
> > > void write_task_proc(void *arg){
> > > int err;
> > > RTIME write_time;
> > > ssize_t sz = sizeof(RTIME);
> > > ssize_t written = 0;
> > > err = rt_task_set_periodic(NULL,
> > > TM_NOW,rt_timer_ns2ticks(write_task_period_ns));
> >
> > How much is writ_task_period_ns ? If it is 10000000011, then you
> > should wait around 10 s before "test2" is displayed.
>
> Sorry, I confused 1 with l.
> --
> Gilles Chanteperdrix
>
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help