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

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)
 
#define LIST_LEN   2
 

Functions

 K_FIFO_DEFINE (kfifo)
 
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_put (const void *p)
 
static void tIsr_entry_get (const void *p)
 
static void tThread_entry (void *p1, void *p2, void *p3)
 
static void tfifo_thread_thread (struct k_fifo *pfifo)
 
static void tfifo_thread_isr (struct k_fifo *pfifo)
 
static void tfifo_isr_thread (struct k_fifo *pfifo)
 
static void tfifo_is_empty (void *p)
 
void test_fifo_thread2thread (void)
 Test thread to thread data passing via fifo. More...
 
void test_fifo_thread2isr (void)
 Test isr to thread data passing via fifo. More...
 
void test_fifo_isr2thread (void)
 Test thread to isr data passing via fifo. More...
 
void test_fifo_is_empty_thread (void)
 Test empty fifo. More...
 
void test_fifo_is_empty_isr (void)
 Test empty fifo in interrupt context. More...
 

Variables

struct k_fifo fifo
 
static fdata_t data [2]
 
static fdata_t data_l [2]
 
static fdata_t data_sl [2]
 
static struct k_thread tdata
 
static struct k_sem end_sema
 

Macro Definition Documentation

◆ LIST_LEN

#define LIST_LEN   2

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

Function Documentation

◆ K_FIFO_DEFINE()

K_FIFO_DEFINE ( kfifo  )

TESTPOINT: init via K_FIFO_DEFINE

◆ 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_is_empty()

static void tfifo_is_empty ( void p)
static

TESTPOINT: return false when data available

TESTPOINT: return true with data unavailable

◆ tfifo_isr_thread()

static void tfifo_isr_thread ( struct k_fifo pfifo)
static

TESTPOINT: thread-isr data passing via fifo

◆ tfifo_put()

static void tfifo_put ( struct k_fifo pfifo)
static

TESTPOINT: fifo put

TESTPOINT: fifo put list

TESTPOINT: fifo put slist

◆ tfifo_thread_isr()

static void tfifo_thread_isr ( struct k_fifo pfifo)
static

TESTPOINT: isr-thread data passing via fifo

◆ tfifo_thread_thread()

static void tfifo_thread_thread ( struct k_fifo pfifo)
static

TESTPOINT: thread-thread data passing via fifo

◆ tIsr_entry_get()

static void tIsr_entry_get ( const void p)
static

◆ tIsr_entry_put()

static void tIsr_entry_put ( const void p)
static

◆ tThread_entry()

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

Variable Documentation

◆ data

fdata_t data[2]
static

◆ data_l

fdata_t data_l[2]
static

◆ data_sl

fdata_t data_sl[2]
static

◆ end_sema

struct k_sem end_sema
static

◆ fifo

struct k_fifo fifo

◆ tdata

struct k_thread tdata
static