Zephyr Project API  3.2.0
A Scalable Open Source RTOS
main.c File Reference
#include <zephyr/kernel.h>
#include <zephyr/ztest.h>

Macros

#define CPU_START_DELAY   10000
 
#define CPU_IPI_DELAY   100
 
#define STACKSZ   2048
 

Functions

 K_THREAD_STACK_DEFINE (thr_stack, 2048)
 
static void thread_fn (void *a, void *b, void *c)
 
 ZTEST (smp_boot_delay, test_smp_boot_delay)
 
 ZTEST_SUITE (smp_boot_delay, NULL, NULL, NULL, NULL, NULL)
 

Variables

char stack [2048]
 
volatile bool mp_flag
 
struct k_thread cpu1_thr
 

Macro Definition Documentation

◆ CPU_IPI_DELAY

#define CPU_IPI_DELAY   100

◆ CPU_START_DELAY

#define CPU_START_DELAY   10000

◆ STACKSZ

#define STACKSZ   2048

Function Documentation

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( thr_stack  ,
2048   
)

◆ thread_fn()

static void thread_fn ( void *  a,
void *  b,
void *  c 
)
static

◆ ZTEST()

ZTEST ( smp_boot_delay  ,
test_smp_boot_delay   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( smp_boot_delay  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ cpu1_thr

struct k_thread cpu1_thr

◆ mp_flag

volatile bool mp_flag

◆ stack

char stack[2048]