修正idle.c中一处宏定义位置

This commit is contained in:
shaojinchun 2018-11-22 22:06:02 +08:00
parent 2a57ba9f96
commit 94a2e751a5
1 changed files with 6 additions and 5 deletions

View File

@ -30,11 +30,6 @@
#endif
#endif
#ifdef RT_USING_IDLE_HOOK
#ifndef RT_IDEL_HOOK_LIST_SIZE
#define RT_IDEL_HOOK_LIST_SIZE 4
#endif
#ifndef IDLE_THREAD_STACK_SIZE
#if defined (RT_USING_IDLE_HOOK) || defined(RT_USING_HEAP)
#define IDLE_THREAD_STACK_SIZE 256
@ -54,6 +49,12 @@ extern rt_list_t rt_thread_defunct;
static struct rt_thread idle[_CPUS_NR];
ALIGN(RT_ALIGN_SIZE)
static rt_uint8_t rt_thread_stack[_CPUS_NR][IDLE_THREAD_STACK_SIZE];
#ifdef RT_USING_IDLE_HOOK
#ifndef RT_IDEL_HOOK_LIST_SIZE
#define RT_IDEL_HOOK_LIST_SIZE 4
#endif
static void (*idle_hook_list[RT_IDEL_HOOK_LIST_SIZE])();
/**