MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / tty_init_termios

Function tty_init_termios

components/lwp/terminal/tty_device.c:339–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339static void tty_init_termios(lwp_tty_t tp)
340{
341 struct termios *t = &tp->t_termios_init_in;
342
343 t->c_cflag = TTYDEF_CFLAG;
344 t->c_iflag = TTYDEF_IFLAG;
345 t->c_lflag = TTYDEF_LFLAG;
346 t->c_oflag = TTYDEF_OFLAG;
347 t->__c_ispeed = TTYDEF_SPEED;
348 t->__c_ospeed = TTYDEF_SPEED;
349
350 memcpy(&t->c_cc, tty_ctrl_charset,
351 sizeof(tty_ctrl_charset) / sizeof(tty_ctrl_charset[0]));
352
353#ifdef USING_BSD_INIT_LOCK_DEVICE
354 tp->t_termios_init_out = *t;
355#endif /* USING_BSD_INIT_LOCK_DEVICE */
356}
357
358lwp_tty_t lwp_tty_create_ext(lwp_ttydevsw_t handle, void *softc,
359 rt_mutex_t custom_mtx)

Callers 1

lwp_tty_create_extFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected