提交 3c14a886 编写于 作者: G geniusgogo 提交者: GitHub

Update idle.c

上级 662f619c
...@@ -185,7 +185,13 @@ static void rt_thread_idle_entry(void *parameter) ...@@ -185,7 +185,13 @@ static void rt_thread_idle_entry(void *parameter)
{ {
while (1) while (1)
{ {
RT_OBJECT_HOOK_CALL(rt_thread_idle_hook,()); #if defined(RT_USING_IDLE_HOOK) && (RT_USING_IDLE_HOOK == 1)
if (rt_thread_idle_hook != RT_NULL)
{
rt_thread_idle_hook();
}
#endif
rt_thread_idle_excute(); rt_thread_idle_excute();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册