* @brief Submit a work item to the system work queue with a delay. * * @param work is a pointer to the work item object. * * @param ticks is the delay OS ticks for the work item to be submitted to the work queue. * * NOTE: The max timeout tick should be no more than (RT_TICK_MAX/2 - 1) * * @return RT_EOK Success. * -RT_ERROR The ticks parameter is invalid. */
| 424 | * -RT_ERROR The ticks parameter is invalid. |
| 425 | */ |
| 426 | rt_err_t rt_work_submit(struct rt_work *work, rt_tick_t ticks) |
| 427 | { |
| 428 | return rt_workqueue_submit_work(sys_workq, work, ticks); |
| 429 | } |
| 430 | |
| 431 | /** |
| 432 | * @brief Submit a work item to the system work queue without delay. This work item will be executed after the current work item. |
no test coverage detected