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

Data Structures

struct  fdata_t
 

Macros

#define STACK_SIZE   (1024 + CONFIG_TEST_EXTRA_STACKSIZE)
 
#define LIST_LEN   4
 

Functions

static K_FIFO_DEFINE (fifo1)
 
static K_FIFO_DEFINE (fifo2)
 
static K_THREAD_STACK_DEFINE (tstack,(1024+CONFIG_TEST_EXTRA_STACKSIZE))
 
static void tIsr_entry_put (const void *p)
 
static void tIsr_entry_get (const void *p)
 
static void thread_entry_fn_single (void *p1, void *p2, void *p3)
 
static void thread_entry_fn_dual (void *p1, void *p2, void *p3)
 
static void thread_entry_fn_isr (void *p1, void *p2, void *p3)
 
static void test_single_fifo_play (void)
 Tests single fifo get and put operation in thread context. More...
 
static void test_dual_fifo_play (void)
 Tests dual fifo get and put operation in thread context. More...
 
static void test_isr_fifo_play (void)
 Tests fifo put and get operation in interrupt context. More...
 
void test_main (void)
 

Variables

static struct fdata_t data1 [4]
 
static struct fdata_t data2 [4]
 
static struct fdata_t data_isr [4]
 
static struct k_thread tdata
 
static struct k_sem end_sema
 

Macro Definition Documentation

◆ LIST_LEN

#define LIST_LEN   4

◆ STACK_SIZE

#define STACK_SIZE   (1024 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ K_FIFO_DEFINE() [1/2]

static K_FIFO_DEFINE ( fifo1  )
static

◆ K_FIFO_DEFINE() [2/2]

static K_FIFO_DEFINE ( fifo2  )
static

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( tstack  ,
(1024+CONFIG_TEST_EXTRA_STACKSIZE)   
)
static

◆ test_main()

void test_main ( void  )

◆ thread_entry_fn_dual()

static void thread_entry_fn_dual ( void p1,
void p2,
void p3 
)
static

◆ thread_entry_fn_isr()

static void thread_entry_fn_isr ( void p1,
void p2,
void p3 
)
static

◆ thread_entry_fn_single()

static void thread_entry_fn_single ( void p1,
void p2,
void p3 
)
static

◆ tIsr_entry_get()

static void tIsr_entry_get ( const void p)
static

◆ tIsr_entry_put()

static void tIsr_entry_put ( const void p)
static

Variable Documentation

◆ data1

struct fdata_t data1[4]
static

◆ data2

struct fdata_t data2[4]
static

◆ data_isr

struct fdata_t data_isr[4]
static

◆ end_sema

struct k_sem end_sema
static

◆ tdata

struct k_thread tdata
static