| 365 | } |
| 366 | |
| 367 | static int _tty_workqueue_init(void) |
| 368 | { |
| 369 | if (_ttyworkq != RT_NULL) |
| 370 | return RT_EOK; |
| 371 | |
| 372 | _ttyworkq = rt_workqueue_create("ttyworkq", RT_SYSTEM_WORKQUEUE_STACKSIZE, |
| 373 | LWP_TTY_WORKQUEUE_PRIORITY); |
| 374 | RT_ASSERT(_ttyworkq != RT_NULL); |
| 375 | |
| 376 | _setup_debug_rxind_hook(); |
| 377 | |
| 378 | return RT_EOK; |
| 379 | } |
| 380 | INIT_PREV_EXPORT(_tty_workqueue_init); |
| 381 | |
| 382 | static rt_err_t _match_tty_iter(struct rt_object *obj, void *data) |
nothing calls this directly
no test coverage detected