Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_lifo_loop.c File Reference
#include "test_lifo.h"

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)
 
#define LIST_LEN   4
 
#define LOOPS   32
 

Functions

static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
static void tlifo_put (struct k_lifo *plifo)
 
static void tlifo_get (struct k_lifo *plifo)
 
static void tIsr_entry (const void *p)
 
static void tThread_entry (void *p1, void *p2, void *p3)
 
static void tlifo_read_write (struct k_lifo *plifo)
 
void test_lifo_loop (void)
 Verify zephyr lifo continuous read write in loop. More...
 

Variables

static ldata_t data [4]
 
static struct k_lifo lifo
 
static struct k_thread tdata
 
static struct k_sem end_sema
 

Macro Definition Documentation

◆ LIST_LEN

#define LIST_LEN   4

◆ LOOPS

#define LOOPS   32

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ K_THREAD_STACK_DEFINE()

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

◆ tIsr_entry()

static void tIsr_entry ( const void p)
static

◆ tlifo_get()

static void tlifo_get ( struct k_lifo plifo)
static

TESTPOINT: lifo get

◆ tlifo_put()

static void tlifo_put ( struct k_lifo plifo)
static

TESTPOINT: lifo put

◆ tlifo_read_write()

static void tlifo_read_write ( struct k_lifo plifo)
static

TESTPOINT: thread-isr-thread data passing via lifo

◆ tThread_entry()

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

Variable Documentation

◆ data

ldata_t data[4]
static

◆ end_sema

struct k_sem end_sema
static

◆ lifo

struct k_lifo lifo
static

◆ tdata

struct k_thread tdata
static