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

Function _tc_flush

components/drivers/serial/dev_serial_v2.c:1355–1368  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1353}
1354
1355static void _tc_flush(struct rt_serial_device *serial, int queue)
1356{
1357 RT_ASSERT(serial != RT_NULL);
1358
1359 if (queue == TCIFLUSH || queue == TCIOFLUSH)
1360 {
1361 _serial_rx_flush(serial);
1362 }
1363
1364 if (queue == TCOFLUSH || queue == TCIOFLUSH)
1365 {
1366 _serial_tx_flush(serial);
1367 }
1368}
1369#endif /* RT_USING_POSIX_TERMIOS */
1370
1371/**

Callers 1

rt_serial_controlFunction · 0.70

Calls 2

_serial_rx_flushFunction · 0.85
_serial_tx_flushFunction · 0.85

Tested by

no test coverage detected