Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
main.c File Reference
#include <ztest.h>
#include <zephyr.h>

Macros

#define STACKSIZE   2048
 
#define THREAD_COUNT   64
 
#define VERBOSE   0
 

Functions

void alternate_thread (void)
 
 K_THREAD_STACK_DEFINE (alt_thread_stack_area, 2048)
 
void test_stack_pt_randomization (void)
 Test stack pointer randomization. More...
 
void test_main (void)
 

Variables

voidlast_sp = (void *)0xFFFFFFFF
 
volatile unsigned int changed
 
static struct k_thread alt_thread_data
 

Macro Definition Documentation

◆ STACKSIZE

#define STACKSIZE   2048

◆ THREAD_COUNT

#define THREAD_COUNT   64

◆ VERBOSE

#define VERBOSE   0

Function Documentation

◆ alternate_thread()

void alternate_thread ( void  )

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( alt_thread_stack_area  ,
2048   
)

◆ test_main()

void test_main ( void  )

test case main entry

◆ test_stack_pt_randomization()

void test_stack_pt_randomization ( void  )

Test stack pointer randomization.

Variable Documentation

◆ alt_thread_data

struct k_thread alt_thread_data
static

◆ changed

volatile unsigned int changed

◆ last_sp

void* last_sp = (void *)0xFFFFFFFF