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

Function _serial_ty_bypass

components/drivers/serial/serial_tty.c:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115#endif /* LWP_DEBUG_INIT */
116
117static rt_err_t _serial_ty_bypass(struct rt_serial_device* serial, char ch,void *data)
118{
119 lwp_tty_t tp;
120 tp = (lwp_tty_t)data;
121
122 tty_lock(tp);
123 ttydisc_rint(tp, ch, 0);
124 ttydisc_rint_done(tp);
125 tty_unlock(tp);
126
127 return RT_EOK;
128
129}
130
131rt_inline void _setup_serial(struct rt_serial_device* serial, lwp_tty_t tp,
132 struct serial_tty_context *softc)

Callers

nothing calls this directly

Calls 2

ttydisc_rintFunction · 0.85
ttydisc_rint_doneFunction · 0.85

Tested by

no test coverage detected