summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2011-03-04 09:16:41 +0000
committerwuyangyong <[email protected]>2011-03-04 09:16:41 +0000
commit7bc4fe3b74fb37a2054ef50463faa0dbaaedb14d (patch)
tree29a158a5f45e9f80b25384c731a6a5bde13a9ebc /src/idle.c
parentb495cb50fcb647013f0bf519a12162e8daece337 (diff)
add IDLE_THREAD_STACK_SIZE in rtconfig.h
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1306 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c
index 49466b81b4..2c5d929111 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -17,11 +17,13 @@
#include <rtthread.h>
#include "kservice.h"
+#ifndef IDLE_THREAD_STACK_SIZE
#if defined (RT_USING_HOOK) || defined(RT_USING_HEAP)
#define IDLE_THREAD_STACK_SIZE 256
#else
#define IDLE_THREAD_STACK_SIZE 128
#endif
+#endif
static struct rt_thread idle;
ALIGN(RT_ALIGN_SIZE)