Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference
#include <zephyr/tc_util.h>
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>

Macros

#define CPU_STACK_SIZE   1024
 

Functions

 K_THREAD_STACK_ARRAY_DEFINE (cpu_stacks, CONFIG_MP_MAX_NUM_CPUS, 1024)
 
FUNC_NORETURN void cpu_fn (void *arg)
 
 ZTEST (multiprocessing, test_mp_start)
 Test to verify CPU start.
 
 ZTEST_SUITE (multiprocessing, NULL, NULL, NULL, NULL, NULL)
 

Variables

int cpu_arg
 
volatile int cpu_running [CONFIG_MP_MAX_NUM_CPUS]
 

Macro Definition Documentation

◆ CPU_STACK_SIZE

#define CPU_STACK_SIZE   1024

Function Documentation

◆ cpu_fn()

FUNC_NORETURN void cpu_fn ( void *  arg)

◆ K_THREAD_STACK_ARRAY_DEFINE()

K_THREAD_STACK_ARRAY_DEFINE ( cpu_stacks  ,
CONFIG_MP_MAX_NUM_CPUS  ,
1024   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( multiprocessing  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ cpu_arg

int cpu_arg

◆ cpu_running

volatile int cpu_running[CONFIG_MP_MAX_NUM_CPUS]