Skip to content
Permalink
Browse files

tests: cmsis_v2: don't hard-code stack sizes

Just use the configured value.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie authored and nashif committed May 2, 2019
1 parent 2038365 commit 81a556688a167becbea6b3156670a6ecec2a83a4
@@ -16,7 +16,7 @@
#define FLAG2 (0x00000004)
#define FLAG (FLAG1 | FLAG2)
#define ISR_FLAG 0x50
#define STACKSZ 512
#define STACKSZ CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE

osEventFlagsId_t evt_id;

@@ -18,7 +18,7 @@ struct sample_data {
#define MESSAGE2 123456
#define TIMEOUT_TICKS 50
#define Q_LEN 5
#define STACKSZ 512
#define STACKSZ CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE

osMessageQueueId_t message_id;

@@ -9,7 +9,7 @@
#include <cmsis_os2.h>

#define TIMEOUT_TICKS 10
#define STACKSZ 512
#define STACKSZ CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE

int max_mtx_cnt = CONFIG_CMSIS_V2_MUTEX_MAX_COUNT;
const osMutexAttr_t mutex_attr = {
@@ -9,7 +9,7 @@
#include <cmsis_os2.h>

#define TIMEOUT_TICKS 10
#define STACKSZ 512
#define STACKSZ CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE

void thread_sema(void *arg)
{
@@ -8,7 +8,7 @@
#include <kernel.h>
#include <cmsis_os2.h>

#define STACKSZ 512
#define STACKSZ CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE

/* This is used to check the thread yield functionality between 2 threads */
static int thread_yield_check;
@@ -16,7 +16,7 @@
#define FLAG2 (0x00000004)
#define FLAG (FLAG1 | FLAG2)
#define ISR_FLAG (0x50)
#define STACKSZ (512)
#define STACKSZ CONFIG_CMSIS_V2_THREAD_MAX_STACK_SIZE

static void thread1(void *arg)
{

0 comments on commit 81a5566

Please sign in to comment.
You can’t perform that action at this time.