Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
#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) |
ZTEST (lifo_contexts_1cpu, test_lifo_thread2thread) | |
test thread to thread data passing via lifo | |
ZTEST (lifo_contexts, test_lifo_thread2isr) | |
test isr to thread data passing via lifo | |
ZTEST (lifo_contexts, test_lifo_isr2thread) | |
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 |
#define LIST_LEN 2 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
K_LIFO_DEFINE | ( | klifo | ) |
TESTPOINT: init via K_LIFO_DEFINE.
|
static |
|
static |
|
static |
|
static |
TESTPOINT: lifo get
|
static |
TESTPOINT: isr-thread data passing via lifo
|
static |
TESTPOINT: lifo put
|
static |
TESTPOINT: thread-isr data passing via lifo
|
static |
TESTPOINT: thread-thread data passing via lifo
|
static |
ZTEST_SUITE | ( | lifo_contexts | , |
NULL | , | ||
NULL | , | ||
NULL | , | ||
NULL | , | ||
NULL | |||
) |
ZTEST_SUITE | ( | lifo_contexts_1cpu | , |
NULL | , | ||
NULL | , | ||
ztest_simple_1cpu_before | , | ||
ztest_simple_1cpu_after | , | ||
NULL | |||
) |
|
static |
|
static |
struct k_lifo lifo |
|
static |