From bb83a05cc84a84c7f13740ce63cc11efa14f1480 Mon Sep 17 00:00:00 2001 From: "jiaojinxing1987@gmail.com" Date: Sat, 2 Oct 2010 14:01:50 +0000 Subject: [PATCH] git-svn-id: https://rt-thread.googlecode.com/svn/trunk@993 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/mini2440/application.c | 6 ++++++ bsp/mini2440/rtconfig.h | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/bsp/mini2440/application.c b/bsp/mini2440/application.c index 31966508a0..35e1515720 100644 --- a/bsp/mini2440/application.c +++ b/bsp/mini2440/application.c @@ -45,6 +45,12 @@ extern void rt_hw_touch_init(void); #include "ftk.h" #endif +#ifdef RT_USING_FTK +#define RT_INIT_THREAD_STACK_SIZE (256*1024) +#else +#define RT_INIT_THREAD_STACK_SIZE (2*1024) +#endif + void rt_init_thread_entry(void* parameter) { /* Filesystem Initialization */ diff --git a/bsp/mini2440/rtconfig.h b/bsp/mini2440/rtconfig.h index 4d62711393..c0c797c680 100644 --- a/bsp/mini2440/rtconfig.h +++ b/bsp/mini2440/rtconfig.h @@ -2,9 +2,6 @@ #ifndef __RTTHREAD_CFG_H__ #define __RTTHREAD_CFG_H__ -/* Init thread stack space size */ -#define RT_INIT_THREAD_STACK_SIZE 2048 - /* RT_NAME_MAX*/ #define RT_NAME_MAX 8 @@ -237,11 +234,6 @@ #undef RT_DFS_ELM_MAX_LFN #define RT_DFS_ELM_MAX_LFN 64 -#undef RT_USING_OVERFLOW_CHECK - -#undef RT_INIT_THREAD_STACK_SIZE -#define RT_INIT_THREAD_STACK_SIZE (256*1024) - #endif #endif