Zephyr Project API 3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_lifo_loop.c File Reference
#include "test_lifo.h"

Macros

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

Functions

static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
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)
 
 ZTEST (lifo_loop, test_lifo_loop)
 Verify zephyr lifo continuous read write in loop.
 
 ZTEST_SUITE (lifo_loop, NULL, NULL, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL)
 

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_STACK_SIZE)

Function Documentation

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
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

◆ ZTEST_SUITE()

ZTEST_SUITE ( lifo_loop  ,
NULL  ,
NULL  ,
ztest_simple_1cpu_before  ,
ztest_simple_1cpu_after  ,
NULL   
)

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