Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_lifo_contexts.c File Reference
#include "test_lifo.h"

Macros

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

Functions

 K_LIFO_DEFINE (klifo)
 TESTPOINT: init via K_LIFO_DEFINE.
 
static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
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
 
void test_lifo_thread2isr (void)
 test isr to thread data passing via lifo
 
void test_lifo_isr2thread (void)
 test thread to isr data passing via lifo
 
 ZTEST_SUITE (lifo_contexts_1cpu, NULL, NULL, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL)
 
 ZTEST_SUITE (lifo_contexts, NULL, NULL, NULL, NULL, NULL)
 

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

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

◆ ZTEST_SUITE() [1/2]

ZTEST_SUITE ( lifo_contexts ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL  )

◆ ZTEST_SUITE() [2/2]

ZTEST_SUITE ( lifo_contexts_1cpu ,
NULL ,
NULL ,
ztest_simple_1cpu_before ,
ztest_simple_1cpu_after ,
NULL  )

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