Merge pull request #11417 from Tharazi97/GR_LYCHEE-stats_CPU

Change stack sizes of threads used in tests. GR_LYCHEE failing CI
pull/11414/head
Martin Kojtal 2019-09-09 14:38:06 +02:00 committed by GitHub
commit 1800632655
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 8 deletions

View File

@ -29,7 +29,13 @@ using namespace utest::v1;
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
#endif
#define SAMPLE_TIME 1000 // msec
#define LOOP_TIME 2000 // msec

View File

@ -26,18 +26,14 @@
#else
#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
#elif defined(__CORTEX_M23) || defined(__CORTEX_M33)
#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
#define CHILD_THREAD_STACK_SIZE 512
#else
#define PARALLEL_THREAD_STACK_SIZE 384
#endif
#define CHILD_THREAD_STACK_SIZE 384
#endif
using namespace utest::v1;