On 9/12/07, Bachman Kharazmi <[EMAIL PROTECTED]> wrote:
> > You can copy this code almost unmodified into an application and compile
> > it against the Xenomai POSIX skin. The serial port configuration apart
> > (same under Linux, though), it will open "rtser<whatever>", even if
> > given like "/dev/rtser...", and work on that port as if it where a Linux
> > one. Life can be simple, sometimes.
>
> Simple? ;)
> I've tried to write a c-program which basiclly should open the device
> rtser0 and write 100x to it and then close.
>
> The simple program can be found here: http://pastebin.ca/693873
>
> I've connected the serial cable to a reading terminal, but there's no
> data at all, when I run the binary. :/

You are missing a call to rt_task_shadow. Note that with the POSIX
skin, this would not happen, because the main thread is automatically
shadowed.

>
> /Bachman
>
> _______________________________________________
> Xenomai-help mailing list
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help
>


-- 
                                               Gilles Chanteperdrix

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to