Bachman Kharazmi wrote:
> rt_task_shadow() commented out.
> fd only declared in the header.. so it should be the same everywhere.
>
> Still all output is written to terminal and nothing over rtser0 (my
> serial port).
> My updated version: http://pastebin.ca/696180
Read my answer again, and completely this time:
> > > (....)
> > > fd = rt_dev_open(WRITE_FILE, 0);
> > > (....)
> > > err=write(fd, myString, strlen(myString));
> >
> > This is no good, a file descriptor returned by rt_dev_open should be
> > used with rt_dev_write. If you want to use write, you should use open
> > and ioctl, and not forget to compile with the flags returned by
> > xeno-config --posix-cflags and xeno-config --posix-ldflags.
--
Gilles Chanteperdrix.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help