| 1353 | } |
| 1354 | |
| 1355 | static 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 | /** |
no test coverage detected