Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Tests for the LIFO kernel object. More...
Functions | |
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... | |
void | test_lifo_get_fail (void *p1, void *p2, void *p3) |
Test LIFO get fail. More... | |
void | test_lifo_loop (void) |
Verify zephyr lifo continuous read write in loop. More... | |
static void | test_thread_timeout_reply_values (void *p1, void *p2, void *p3) |
try getting data on lifo with special timeout value, return result in lifo More... | |
static void | test_thread_timeout_reply_values_wfe (void *p1, void *p2, void *p3) |
static void | test_thread_put_timeout (void *p1, void *p2, void *p3) |
A thread sleeps then puts data on the lifo. More... | |
static void | test_lifo_nowait (void) |
Test last in, first out queue using LIFO. More... | |
static void | test_lifo_wait (void) |
Test pending reader in LIFO. More... | |
static void | test_timeout_empty_lifo (void) |
Test reading empty LIFO. More... | |
static void | test_timeout_non_empty_lifo (void) |
Test read and write operation in LIFO with timeout. More... | |
static void | test_timeout_lifo_thread (void) |
Test LIFO with timeout. More... | |
void | test_thread_pend_and_timeout (void *p1, void *p2, void *p3) |
a thread pends on a lifo then times out More... | |
static void | test_timeout_threads_pend_on_lifo (void) |
Test multiple pending readers in LIFO. More... | |
static void | test_para_init (void) |
Test LIFO initialization with various parameters. More... | |
Tests for the LIFO kernel object.
Verify zephyr fifo apis under different context
#include <tests/kernel/lifo/lifo_api/src/test_lifo_fail.c>
Test LIFO get fail.
verify zephyr k_lifo_get, it returns NULL when there is no data to read
TESTPOINT: lifo get returns NULL
#include <tests/kernel/lifo/lifo_api/src/test_lifo_contexts.c>
test thread to isr data passing via lifo
TESTPOINT: test k_lifo_init lifo
TESTPOINT: test K_LIFO_DEFINE lifo
#include <tests/kernel/lifo/lifo_api/src/test_lifo_loop.c>
Verify zephyr lifo continuous read write in loop.
#include <tests/kernel/lifo/lifo_usage/src/main.c>
Test last in, first out queue using LIFO.
#include <tests/kernel/lifo/lifo_api/src/test_lifo_contexts.c>
test isr to thread data passing via lifo
TESTPOINT: init via k_lifo_init
TESTPOINT: test K_LIFO_DEFINEed lifo
#include <tests/kernel/lifo/lifo_api/src/test_lifo_contexts.c>
test thread to thread data passing via lifo
TESTPOINT: init via k_lifo_init
TESTPOINT: test K_LIFO_DEFINEed lifo
#include <tests/kernel/lifo/lifo_usage/src/main.c>
Test pending reader in LIFO.
#include <tests/kernel/lifo/lifo_usage/src/main.c>
Test LIFO initialization with various parameters.
#include <tests/kernel/lifo/lifo_usage/src/main.c>
a thread pends on a lifo then times out
#include <tests/kernel/lifo/lifo_usage/src/main.c>
A thread sleeps then puts data on the lifo.
#include <tests/kernel/lifo/lifo_usage/src/main.c>
try getting data on lifo with special timeout value, return result in lifo
#include <tests/kernel/lifo/lifo_usage/src/main.c>
#include <tests/kernel/lifo/lifo_usage/src/main.c>
Test LIFO with timeout.
#include <tests/kernel/lifo/lifo_usage/src/main.c>
Test read and write operation in LIFO with timeout.
#include <tests/kernel/lifo/lifo_usage/src/main.c>
Test multiple pending readers in LIFO.
test multiple threads pending on the same lifo with different timeouts