| 212 | } |
| 213 | |
| 214 | static int serial_fops_flush(struct dfs_file *fd) |
| 215 | { |
| 216 | rt_device_t device; |
| 217 | device = (rt_device_t)fd->vnode->data; |
| 218 | RT_ASSERT(device != RT_NULL); |
| 219 | |
| 220 | rt_device_control(device, RT_SERIAL_CTRL_TX_FLUSH, (void *)RT_NULL); |
| 221 | rt_device_control(device, RT_SERIAL_CTRL_RX_FLUSH, (void *)RT_NULL); |
| 222 | |
| 223 | return 0; |
| 224 | } |
| 225 | |
| 226 | static int serial_fops_poll(struct dfs_file *fd, struct rt_pollreq *req) |
| 227 | { |
nothing calls this directly
no test coverage detected