Maintain legacy RTOS behavior before mbed-5
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_A/RTX_Conf_CA.c
- Revision:
- 118:6635230e06ba
- Parent:
- 109:3b7dd22a5b25
- Child:
- 123:58563e6cba1e
--- a/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c Mon May 23 11:00:15 2016 +0100 +++ b/rtx/TARGET_CORTEX_A/RTX_Conf_CA.c Mon Jul 25 14:12:24 2016 +0100 @@ -38,6 +38,11 @@ * RTX User configuration part BEGIN *---------------------------------------------------------------------------*/ +#if defined(MBED_RTOS_SINGLE_THREAD) +#define OS_TASKCNT 1 +#define OS_TIMERS 0 +#endif + //-------- <<< Use Configuration Wizard in Context Menu >>> ----------------- // // <h>Thread Configuration @@ -67,9 +72,9 @@ // <o>Main Thread stack size [bytes] <64-4096:8><#/4> // <i> Defines stack size for main thread. -// <i> Default: 200 +// <i> Default: 4096 #ifndef OS_MAINSTKSIZE - #define OS_MAINSTKSIZE 2048 + #define OS_MAINSTKSIZE 4096 #endif #ifndef __MBED_CMSIS_RTOS_CA9