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

Macros

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

Functions

 K_LIFO_DEFINE (klifo)
 
static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
static void tlifo_put (struct k_lifo *plifo)
 
static void tlifo_get (struct k_lifo *plifo)
 
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 tlifo_thread_thread (struct k_lifo *plifo)
 
static void tlifo_thread_isr (struct k_lifo *plifo)
 
static void tlifo_isr_thread (struct k_lifo *plifo)
 
void test_lifo_thread2thread (void)
 test thread to thread data passing via lifo More...
 
void test_lifo_thread2isr (void)
 test isr to thread data passing via lifo More...
 
void test_lifo_isr2thread (void)
 test thread to isr data passing via lifo More...
 

Variables

struct k_lifo lifo
 
static ldata_t data [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_LIFO_DEFINE()

K_LIFO_DEFINE ( klifo  )

TESTPOINT: init via K_LIFO_DEFINE

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACKSIZE)   
)
static

◆ tIsr_entry_get()

static void tIsr_entry_get ( const void p)
static

◆ tIsr_entry_put()

static void tIsr_entry_put ( const void p)
static

◆ tlifo_get()

static void tlifo_get ( struct k_lifo plifo)
static

TESTPOINT: lifo get

◆ tlifo_isr_thread()

static void tlifo_isr_thread ( struct k_lifo plifo)
static

TESTPOINT: isr-thread data passing via lifo

◆ tlifo_put()

static void tlifo_put ( struct k_lifo plifo)
static

TESTPOINT: lifo put

◆ tlifo_thread_isr()

static void tlifo_thread_isr ( struct k_lifo plifo)
static

TESTPOINT: thread-isr data passing via lifo

◆ tlifo_thread_thread()

static void tlifo_thread_thread ( struct k_lifo plifo)
static

TESTPOINT: thread-thread data passing via lifo

◆ tThread_entry()

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

Variable Documentation

◆ data

ldata_t data[2]
static

◆ end_sema

struct k_sem end_sema
static

◆ lifo

struct k_lifo lifo

◆ tdata

struct k_thread tdata
static