STM32F3 : fix RTOS IAR test not compiling.

Thread_stack_main is by default too large for this target.
pull/2536/head
Michel Jaouen 2016-08-22 18:07:26 +02:00
parent 22acfbf077
commit a1bd087380
1 changed files with 2 additions and 1 deletions

View File

@ -351,7 +351,8 @@ __attribute__((used)) void _mutex_release (OS_ID *mutex) {
/* Main Thread definition */ /* Main Thread definition */
extern void pre_main (void); extern void pre_main (void);
#if defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #if defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) || defined (TARGET_STM32F334R8) ||\
defined(TARGET_STM32F302R8) || defined(TARGET_STM32F303K8) || defined (TARGET_STM32F334C8)
static uint32_t thread_stack_main[DEFAULT_STACK_SIZE / sizeof(uint32_t)]; static uint32_t thread_stack_main[DEFAULT_STACK_SIZE / sizeof(uint32_t)];
#else #else
static uint32_t thread_stack_main[DEFAULT_STACK_SIZE * 2 / sizeof(uint32_t)]; static uint32_t thread_stack_main[DEFAULT_STACK_SIZE * 2 / sizeof(uint32_t)];