Skip to content

Commit 4bfdc57

Browse files
jeromecoutantRyoheiHagimoto
authored andcommitted
STM32F0: clean main-thread-stack-size setting
1 parent 5d04c21 commit 4bfdc57

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

rtos/source/TARGET_CORTEX/mbed_lib.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
"STM32L1": {
3939
"idle-thread-stack-size-debug-extra": 512
4040
},
41+
"STM32F070RB": {
42+
"main-thread-stack-size": 3072
43+
},
44+
"STM32F072RB": {
45+
"main-thread-stack-size": 3072
46+
},
4147
"MCU_NRF51": {
4248
"target.boot-stack-size": "0x800"
4349
},

targets/TARGET_STM/mbed_rtx.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@
1919

2020
#include <stdint.h>
2121

22-
#if (defined(TARGET_STM32F070RB) || defined(TARGET_STM32F072RB))
23-
#ifdef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
24-
#undef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
25-
#endif
26-
#define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 3072
27-
#endif
28-
2922
#if (defined(TARGET_STM32L475VG) || defined(TARGET_STM32L443RC))
3023
#if defined(__ARMCC_VERSION)
3124
extern uint32_t Image$$ARM_LIB_HEAP$$ZI$$Base[];

0 commit comments

Comments
 (0)