mirror of https://github.com/ARMmbed/mbed-os.git
Set main thread stack size as 3K for constrained targets
parent
f549f14a0a
commit
f24ac501a8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue