Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_fifo_loop.c File Reference
#include "test_fifo.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 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)
 
void test_fifo_loop (void)
 Verify zephyr fifo continuous read write in loop. More...
 

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

Function Documentation

◆ K_THREAD_STACK_DEFINE()

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