Set main thread stack size as 3K for constrained targets

pull/5285/head
Deepika 2018-09-28 11:14:43 -05:00 committed by deepikabhavnani
parent f549f14a0a
commit f24ac501a8
3 changed files with 22 additions and 0 deletions

View File

@ -45,6 +45,13 @@
#error "no toolchain defined"
#endif
#if defined(TARGET_NANO100)
#ifdef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#undef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#endif
#define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 3072
#endif
#endif // TARGET_NUVOTON
#endif // MBED_MBED_RTX_H

View File

@ -136,4 +136,11 @@ extern uint32_t __HeapLimit[];
#define ISR_STACK_SIZE ((uint32_t)((uint32_t)__StackTop - (uint32_t)__StackLimit))
#endif
#if (defined(TARGET_STM32F070RB) || defined(TARGET_STM32F072RB))
#ifdef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#undef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#endif
#define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 3072
#endif
#endif // MBED_MBED_RTX_H

View File

@ -22,6 +22,10 @@
#ifndef INITIAL_SP
#define INITIAL_SP (0x20004000UL)
#endif
#ifdef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#undef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#endif
#define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 3072
#endif
@ -30,6 +34,10 @@
#ifndef INITIAL_SP
#define INITIAL_SP (0x20080000UL)
#endif
#ifdef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#undef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
#endif
#define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 3072
#endif