Explorar o código

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@993 bbd45198-f89e-11dd-88c7-29a3b14d5316

jiaojinxing1987@gmail.com %!s(int64=14) %!d(string=hai) anos
pai
achega
bb83a05cc8
Modificáronse 2 ficheiros con 6 adicións e 8 borrados
  1. 6 0
      bsp/mini2440/application.c
  2. 0 8
      bsp/mini2440/rtconfig.h

+ 6 - 0
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 */

+ 0 - 8
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