From 36e357ee5eda9fe4ba990f53f66be3bbdc6b1716 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 17 Feb 2008 21:00:56 +0000 Subject: [PATCH] Change stack size depending on memory model. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@211 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- .../FreeRTOS_96348hs_SK16FX100PMC/Src/FreeRTOSConfig.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/FreeRTOSConfig.h b/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/FreeRTOSConfig.h index 00d526653..9981427f5 100644 --- a/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/FreeRTOSConfig.h +++ b/Demo/MB96340_Softune/FreeRTOS_96348hs_SK16FX100PMC/Src/FreeRTOSConfig.h @@ -77,7 +77,6 @@ when running the application using the EUROScope debugger. */ #define configCLKP1_CLOCK_HZ ( ( unsigned portLONG ) 56000000 ) /* Clock setup from start.asm in the demo application. */ #define configTICK_RATE_HZ ( (portTickType) 1000 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 6 ) -#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) #define configTOTAL_HEAP_SIZE ( (size_t) (20000) ) #define configMAX_TASK_NAME_LEN ( 20 ) #define configUSE_16_BIT_TICKS 1 @@ -85,6 +84,12 @@ when running the application using the EUROScope debugger. */ #define configUSE_MUTEXES 1 #define configUSE_TRACE_FACILITY 1 +#if( ( configMEMMODEL == portSMALL ) || ( configMEMMODEL == portMEDIUM ) ) + #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 ) +#else + #define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 120 ) +#endif + /* Co-routine definitions. */ #define configUSE_CO_ROUTINES 1 #define configMAX_CO_ROUTINE_PRIORITIES ( 4 ) -- 2.39.5