Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main.c File Reference
#include <zephyr.h>
#include <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)
 
void test_smp_boot_delay (void)
 
void test_post_boot_ipi (void)
 
void test_main (void)
 

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   
)

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_post_boot_ipi()

void test_post_boot_ipi ( void  )

◆ test_smp_boot_delay()

void test_smp_boot_delay ( void  )

◆ thread_fn()

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

Variable Documentation

◆ cpu1_thr

struct k_thread cpu1_thr

◆ mp_flag

volatile bool mp_flag

◆ stack

char stack[2048]