diff options
| author | geniusgogo <[email protected]> | 2017-05-22 23:53:55 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-22 23:53:55 +0800 |
| commit | 3c14a8867ddd0b4ed74cb07b0cf9975f4b32515f (patch) | |
| tree | cb6d73c7b9926d72a6c3677126d36f34c1bd45df /src/idle.c | |
| parent | 662f619cf6723c9322f7bfb83f7d1b441edac4bf (diff) | |
Update idle.c
Diffstat (limited to 'src/idle.c')
| -rw-r--r-- | src/idle.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/idle.c b/src/idle.c index 630ce0cdc7..50d55657a1 100644 --- a/src/idle.c +++ b/src/idle.c @@ -185,7 +185,13 @@ static void rt_thread_idle_entry(void *parameter) { 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(); } } |
