NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Serial port programming



Thanks to Johnny Billquist, and following a read of /usr/include/termios.h,
I changed my code to the following:

    attr.c_cflag &= ~PARENB;
    attr.c_cflag &= ~CSIZE;
    attr.c_cflag |= CS8;
    attr.c_cflag |= CSTOPB;
    attr.c_cflag |= CLOCAL;

It didn't get rid of all the spurious notes, but it got rid of the ones that
occasionally sounded along with the snare. However, changing from a Shark to
a PC got rid of the remaining spurious notes. I wonder if there's a problem
with the serial port on my Shark ...

Chris






Home | Main Index | Thread Index | Old Index