File tree Expand file tree Collapse file tree 3 files changed +6
-15
lines changed
TESTS/mbed_hal/stack_size_unification
rtos/source/TARGET_CORTEX Expand file tree Collapse file tree 3 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -31,19 +31,11 @@ extern osThreadAttr_t _main_thread_attr;
31
31
#endif
32
32
extern uint32_t mbed_stack_isr_size;
33
33
34
- #if !defined(MBED_CONF_RTOS_PRESENT)
35
- #define EXPECTED_ISR_STACK_SIZE (4096 )
36
- #else
37
- #define EXPECTED_ISR_STACK_SIZE (1024 )
38
- #endif
34
+ #define EXPECTED_ISR_STACK_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE)
39
35
40
- #if defined(TARGET_NUCLEO_F070RB) || defined(TARGET_STM32F072RB) || defined(TARGET_TMPM46B) || defined(TARGET_TMPM066)
41
- #define EXPECTED_MAIN_THREAD_STACK_SIZE (3072 )
42
- #else
43
- #define EXPECTED_MAIN_THREAD_STACK_SIZE (4096 )
44
- #endif
36
+ #define EXPECTED_MAIN_THREAD_STACK_SIZE (MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE)
45
37
46
- #define EXPECTED_USER_THREAD_DEFAULT_STACK_SIZE (4096 )
38
+ #define EXPECTED_USER_THREAD_DEFAULT_STACK_SIZE (MBED_CONF_RTOS_THREAD_STACK_SIZE )
47
39
48
40
#if ((MBED_RAM_SIZE - MBED_BOOT_STACK_SIZE) <= (EXPECTED_MAIN_THREAD_STACK_SIZE + EXPECTED_ISR_STACK_SIZE))
49
41
#error [NOT_SUPPORTED] Insufficient stack for staci_size_unification tests
Original file line number Diff line number Diff line change 76
76
"STM32F072RB" : {
77
77
"main-thread-stack-size" : 3072
78
78
},
79
+ "TMPM46B" : {
80
+ "main-thread-stack-size" : 3072
81
+ },
79
82
"NUVOTON" : {
80
83
"idle-thread-stack-size-debug-extra" : 512
81
84
}
Original file line number Diff line number Diff line change 25
25
#ifndef INITIAL_SP
26
26
#define INITIAL_SP (0x20080000UL)
27
27
#endif
28
- #ifdef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
29
- #undef MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE
30
- #endif
31
- #define MBED_CONF_RTOS_MAIN_THREAD_STACK_SIZE 3072
32
28
33
29
#endif
34
30
You can’t perform that action at this time.
0 commit comments