File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " rtos" ,
33 "config" : {
4- "present" : 1
4+ "present" : 1 ,
5+ "default_stack_size" : " (WORDS_STACK_SIZE*4)"
56 }
67}
Original file line number Diff line number Diff line change @@ -149,7 +149,11 @@ used throughout the whole project.
149149# define WORDS_STACK_SIZE 128
150150#endif
151151
152- #define DEFAULT_STACK_SIZE (WORDS_STACK_SIZE*4)
152+ #ifndef MBED_CONF_RTOS_DEFAULT_STACK_SIZE
153+ #define MBED_CONF_RTOS_DEFAULT_STACK_SIZE (WORDS_STACK_SIZE*4)
154+ #endif
155+
156+ #define DEFAULT_STACK_SIZE MBED_CONF_RTOS_DEFAULT_STACK_SIZE
153157
154158/// \note MUST REMAIN UNCHANGED: \b osFeature_xxx shall be consistent in every CMSIS-RTOS.
155159#define osFeature_MainThread 1 ///< main thread 1=main can be thread, 0=not available
Original file line number Diff line number Diff line change 8282
8383#endif
8484
85- #define DEFAULT_STACK_SIZE (WORDS_STACK_SIZE*4)
85+ #ifndef MBED_CONF_RTOS_DEFAULT_STACK_SIZE
86+ #define MBED_CONF_RTOS_DEFAULT_STACK_SIZE (WORDS_STACK_SIZE*4)
87+ #endif
88+
89+ #define DEFAULT_STACK_SIZE MBED_CONF_RTOS_DEFAULT_STACK_SIZE
8690
8791#define osCMSIS 0x10002U ///< CMSIS-RTOS API version (main [31:16] .sub [15:0])
8892
You can’t perform that action at this time.
0 commit comments