On 9/13/07, Bachman Kharazmi <[EMAIL PROTECTED]> wrote:
> int main(int argc)
> {
>        int fd;
>         char* myString = "helloworld\n";
>        fd = open("rtser0", O_RDWR);
>        ioctl(fd, RTSER_RTIOC_SET_CONFIG, &write_config);
>        write(fd, myString, strlen(myString));
>        close(fd);
>        return 0;
> }
> Is supposed to be the POSIX skin. It does compile, but nothing sent on
> my serial port.

This code is crappy. You do not check the return values of functions
which return a result so you have no chance to understand what
happens.

-- 
                                               Gilles Chanteperdrix

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

Reply via email to