Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_fifo_loop.c File Reference
#include "test_fifo.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 tfifo_put (struct k_fifo *pfifo)
 
static void tfifo_get (struct k_fifo *pfifo)
 
static void tIsr_entry (const void *p)
 
static void tThread_entry (void *p1, void *p2, void *p3)
 
static void tfifo_read_write (struct k_fifo *pfifo)
 
 ZTEST (fifo_api_1cpu, test_fifo_loop)
 Verify zephyr fifo continuous read write in loop.
 

Variables

static fdata_t data [4]
 
static struct k_fifo fifo
 
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

◆ tfifo_get()

static void tfifo_get ( struct k_fifo pfifo)
static

TESTPOINT: fifo get

◆ tfifo_put()

static void tfifo_put ( struct k_fifo pfifo)
static

TESTPOINT: fifo put

◆ tfifo_read_write()

static void tfifo_read_write ( struct k_fifo pfifo)
static

TESTPOINT: thread-isr-thread data passing via fifo

◆ tIsr_entry()

static void tIsr_entry ( const void *  p)
static

◆ tThread_entry()

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

Variable Documentation

◆ data

fdata_t data[4]
static

◆ end_sema

struct k_sem end_sema
static

◆ fifo

struct k_fifo fifo
static

◆ tdata

struct k_thread tdata
static