mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-05-31 03:38:02 +08:00
[DeviceDriver] Add more exported symbols for completion.
This commit is contained in:
@@ -39,6 +39,7 @@ void rt_completion_init(struct rt_completion *completion)
|
|||||||
rt_list_init(&completion->suspended_list);
|
rt_list_init(&completion->suspended_list);
|
||||||
rt_hw_interrupt_enable(level);
|
rt_hw_interrupt_enable(level);
|
||||||
}
|
}
|
||||||
|
RTM_EXPORT(rt_completion_init);
|
||||||
|
|
||||||
rt_err_t rt_completion_wait(struct rt_completion *completion,
|
rt_err_t rt_completion_wait(struct rt_completion *completion,
|
||||||
rt_int32_t timeout)
|
rt_int32_t timeout)
|
||||||
@@ -105,6 +106,7 @@ __exit:
|
|||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
RTM_EXPORT(rt_completion_wait);
|
||||||
|
|
||||||
void rt_completion_done(struct rt_completion *completion)
|
void rt_completion_done(struct rt_completion *completion)
|
||||||
{
|
{
|
||||||
@@ -139,3 +141,5 @@ void rt_completion_done(struct rt_completion *completion)
|
|||||||
rt_hw_interrupt_enable(level);
|
rt_hw_interrupt_enable(level);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
RTM_EXPORT(rt_completion_done);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user