Change stack size depending on memory model.

This commit is contained in:
Richard Barry 2008-02-17 21:00:56 +00:00
parent c8de9a1cd8
commit 30eb33aa89

View File

@ -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 configCLKP1_CLOCK_HZ ( ( unsigned portLONG ) 56000000 ) /* Clock setup from start.asm in the demo application. */
#define configTICK_RATE_HZ ( (portTickType) 1000 ) #define configTICK_RATE_HZ ( (portTickType) 1000 )
#define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 6 ) #define configMAX_PRIORITIES ( ( unsigned portBASE_TYPE ) 6 )
#define configMINIMAL_STACK_SIZE ( ( unsigned portSHORT ) 80 )
#define configTOTAL_HEAP_SIZE ( (size_t) (20000) ) #define configTOTAL_HEAP_SIZE ( (size_t) (20000) )
#define configMAX_TASK_NAME_LEN ( 20 ) #define configMAX_TASK_NAME_LEN ( 20 )
#define configUSE_16_BIT_TICKS 1 #define configUSE_16_BIT_TICKS 1
@ -85,6 +84,12 @@ when running the application using the EUROScope debugger. */
#define configUSE_MUTEXES 1 #define configUSE_MUTEXES 1
#define configUSE_TRACE_FACILITY 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. */ /* Co-routine definitions. */
#define configUSE_CO_ROUTINES 1 #define configUSE_CO_ROUTINES 1
#define configMAX_CO_ROUTINE_PRIORITIES ( 4 ) #define configMAX_CO_ROUTINE_PRIORITIES ( 4 )