Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_fifo_contexts.c File Reference
#include "test_fifo.h"

Macros

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

Functions

 K_FIFO_DEFINE (kfifo)
 TESTPOINT: init via K_FIFO_DEFINE.
 
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_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)
 
 ZTEST (fifo_api_1cpu, test_fifo_thread2thread)
 Test thread to thread data passing via fifo.
 
 ZTEST (fifo_api, test_fifo_thread2isr)
 Test isr to thread data passing via fifo.
 
 ZTEST (fifo_api, test_fifo_isr2thread)
 Test thread to isr data passing via fifo.
 
 ZTEST (fifo_api, test_fifo_is_empty_thread)
 Test empty fifo.
 
 ZTEST (fifo_api, test_fifo_is_empty_isr)
 Test empty fifo in interrupt context.
 

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

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