Lines Matching refs:termios
56 static struct termios original_stdin_termios;
57 static struct termios original_stdout_termios;
73 struct termios termios; in otPlatUartEnable() local
98 … otEXPECT_ACTION(tcgetattr(s_in_fd, &termios) == 0, perror("tcgetattr"); error = OT_ERROR_GENERIC); in otPlatUartEnable()
102 cfmakeraw(&termios); in otPlatUartEnable()
105 termios.c_cflag |= HUPCL | CREAD | CLOCAL; in otPlatUartEnable()
108 termios.c_cc[VMIN] = 1; in otPlatUartEnable()
111 termios.c_cc[VTIME] = 0; in otPlatUartEnable()
114 …otEXPECT_ACTION(cfsetispeed(&termios, OPENTHREAD_SIMULATION_UART_BAUDRATE) == 0, perror("cfsetispe… in otPlatUartEnable()
118 …otEXPECT_ACTION(tcsetattr(s_in_fd, TCSANOW, &termios) == 0, perror("tcsetattr"); error = OT_ERROR_… in otPlatUartEnable()
124 …otEXPECT_ACTION(tcgetattr(s_out_fd, &termios) == 0, perror("tcgetattr"); error = OT_ERROR_GENERIC); in otPlatUartEnable()
128 cfmakeraw(&termios); in otPlatUartEnable()
131 termios.c_oflag = 0; in otPlatUartEnable()
134 termios.c_cflag |= HUPCL | CREAD | CLOCAL; in otPlatUartEnable()
137 …otEXPECT_ACTION(cfsetospeed(&termios, OPENTHREAD_SIMULATION_UART_BAUDRATE) == 0, perror("cfsetospe… in otPlatUartEnable()
141 …otEXPECT_ACTION(tcsetattr(s_out_fd, TCSANOW, &termios) == 0, perror("tcsetattr"); error = OT_ERROR… in otPlatUartEnable()