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

Function rt_bypass_work_straight

components/drivers/serial/bypass.c:249–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void rt_bypass_work_straight(struct rt_serial_device* serial)
250{
251 if (serial->bypass && serial->bypass->lower_h)
252 {
253 _lower_work(serial);
254 return;
255 }
256
257 while (1)
258 {
259 char ch;
260 if (_bypass_getchar_form_serial_fifo(serial, &ch))
261 return;
262
263 rt_bypass_putchar(serial, ch);
264 }
265
266}
267
268rt_err_t rt_bypass_unregister(struct rt_serial_bypass_head* bypass, rt_uint8_t level)
269{

Callers 1

_serial_int_rxFunction · 0.85

Calls 3

_lower_workFunction · 0.85
rt_bypass_putcharFunction · 0.85

Tested by

no test coverage detected