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;
2929
3030DigitalOut led1 (LED1);
3131
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
3236#define MAX_THREAD_STACK 384
37+ #endif
38+
3339#define SAMPLE_TIME 1000 // msec
3440#define LOOP_TIME 2000 // msec
3541
Original file line number Diff line number Diff line change 2626#else
2727
2828#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)
3030#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
3732#else
3833#define PARALLEL_THREAD_STACK_SIZE 384
39- #endif
4034#define CHILD_THREAD_STACK_SIZE 384
35+ #endif
36+
4137
4238using namespace utest ::v1;
4339
You can’t perform that action at this time.
0 commit comments