| 115 | #endif /* LWP_DEBUG_INIT */ |
| 116 | |
| 117 | static 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 | |
| 131 | rt_inline void _setup_serial(struct rt_serial_device* serial, lwp_tty_t tp, |
| 132 | struct serial_tty_context *softc) |
nothing calls this directly
no test coverage detected