mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11417 from Tharazi97/GR_LYCHEE-stats_CPU
Change stack sizes of threads used in tests. GR_LYCHEE failing CIpull/11414/head
commit
1800632655
|
@ -29,7 +29,13 @@ using namespace utest::v1;
|
||||||
|
|
||||||
DigitalOut led1(LED1);
|
DigitalOut led1(LED1);
|
||||||
|
|
||||||
|
// Targets with these cores have their RAM enough size to create threads with bigger stacks
|
||||||
|
#if defined(__CORTEX_A9) || defined(__CORTEX_M23) || defined(__CORTEX_M33) || defined(__CORTEX_M7)
|
||||||
|
#define MAX_THREAD_STACK 512
|
||||||
|
#else
|
||||||
#define MAX_THREAD_STACK 384
|
#define MAX_THREAD_STACK 384
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SAMPLE_TIME 1000 // msec
|
#define SAMPLE_TIME 1000 // msec
|
||||||
#define LOOP_TIME 2000 // msec
|
#define LOOP_TIME 2000 // msec
|
||||||
|
|
||||||
|
|
|
@ -26,18 +26,14 @@
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define THREAD_STACK_SIZE 512
|
#define THREAD_STACK_SIZE 512
|
||||||
#if defined(__CORTEX_A9)
|
#if defined(__CORTEX_A9) || defined(__CORTEX_M23) || defined(__CORTEX_M33) || defined(TARGET_ARM_FM) || defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
|
||||||
#define PARALLEL_THREAD_STACK_SIZE 512
|
#define PARALLEL_THREAD_STACK_SIZE 512
|
||||||
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
|
#define CHILD_THREAD_STACK_SIZE 512
|
||||||
#define PARALLEL_THREAD_STACK_SIZE 512
|
|
||||||
#elif defined(TARGET_ARM_FM)
|
|
||||||
#define PARALLEL_THREAD_STACK_SIZE 512
|
|
||||||
#elif defined(TARGET_CY8CKIT_062_WIFI_BT_PSA)
|
|
||||||
#define PARALLEL_THREAD_STACK_SIZE 512
|
|
||||||
#else
|
#else
|
||||||
#define PARALLEL_THREAD_STACK_SIZE 384
|
#define PARALLEL_THREAD_STACK_SIZE 384
|
||||||
#endif
|
|
||||||
#define CHILD_THREAD_STACK_SIZE 384
|
#define CHILD_THREAD_STACK_SIZE 384
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace utest::v1;
|
using namespace utest::v1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue