mesh_driver/lunix-attach.c
static int tty_set_stopbits(struct termios *tty, char *stopbits)
{
	switch(*stopbits) {
	case '1':
		tty->c_cflag &= ~CSTOPB;
		break;

	case '2':
		tty->c_cflag |= CSTOPB;
		break;

	default:
		return -EINVAL;
  	}

	return 0;
}
/* Set the number of stop bits. */
Set the number of stop bits.
Set the number of stop bits .
static int tty_set_stopbits(struct termios *tty, char *stopbits)
{
	switch(*stopbits) {
	case '1':
		tty->c_cflag &= ~CSTOPB;
		break;
	case '2':
		tty->c_cflag |= CSTOPB;
		break;
	default:
		return -EINVAL;
  	}
	return 0;
}
static int tty_set_stopbits ( struct termios * tty , char * stopbits ) { switch ( * stopbits ) { case ' ' : tty -> c_cflag &= ~ CSTOPB ; break ; case ' ' : tty -> c_cflag |= CSTOPB ; break ; default : return - EINVAL ; } return 0 ; }
Set the number of stop bits.
Set the number of stop bits .