File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
mbedmicro-rtos-mbed/threads Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ using namespace utest::v1;
29
29
30
30
DigitalOut led1 (LED1);
31
31
32
+ // Targets with these cores have their RAM enough size to create threads with bigger stacks
33
+ #if defined(__CORTEX_A9) || defined(__CORTEX_M23) || defined(__CORTEX_M33) || defined(__CORTEX_M7)
34
+ #define MAX_THREAD_STACK 512
35
+ #else
32
36
#define MAX_THREAD_STACK 384
37
+ #endif
38
+
33
39
#define SAMPLE_TIME 1000 // msec
34
40
#define LOOP_TIME 2000 // msec
35
41
Original file line number Diff line number Diff line change 26
26
#else
27
27
28
28
#define THREAD_STACK_SIZE 512
29
- #if defined(__CORTEX_A9)
29
+ #if defined(__CORTEX_A9) || defined(__CORTEX_M23) || defined(__CORTEX_M33) || defined(TARGET_ARM_FM) || defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
30
30
#define PARALLEL_THREAD_STACK_SIZE 512
31
- #elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
32
- #define PARALLEL_THREAD_STACK_SIZE 512
33
- #elif defined(TARGET_ARM_FM)
34
- #define PARALLEL_THREAD_STACK_SIZE 512
35
- #elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
36
- #define PARALLEL_THREAD_STACK_SIZE 512
31
+ #define CHILD_THREAD_STACK_SIZE 512
37
32
#else
38
33
#define PARALLEL_THREAD_STACK_SIZE 384
39
- #endif
40
34
#define CHILD_THREAD_STACK_SIZE 384
35
+ #endif
36
+
41
37
42
38
using namespace utest ::v1;
43
39
You can’t perform that action at this time.
0 commit comments