Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
#include <ztest.h>
Macros | |
#define | TIMEOUT K_MSEC(100) |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#define | MAIL_LEN 64 |
Functions | |
K_MBOX_DEFINE (kmbox) | |
static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static | K_THREAD_STACK_DEFINE (rtstack,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static | K_THREAD_STACK_DEFINE (tstack_1,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static | K_THREAD_STACK_ARRAY_DEFINE (waiting_get_stack, 5,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static void | async_put_sema_give (void *p1, void *p2, void *p3) |
static void | mbox_get_waiting_thread (void *p1, void *p2, void *p3) |
static void | tmbox_put (struct k_mbox *pmbox) |
static void | tmbox_get (struct k_mbox *pmbox) |
static void | tmbox_entry (void *p1, void *p2, void *p3) |
static void | tmbox (struct k_mbox *pmbox) |
void | test_mbox_kinit (void) |
void | test_mbox_kdefine (void) |
K_MBOX_DEFINE (send_mbox) | |
static void | thread_mbox_data_get_null (void *p1, void *p2, void *p3) |
void | test_mbox_data_get_null (void) |
Test k_mbox_data_get() API. More... | |
static void | thread_mbox_get_block_data (void *p1, void *p2, void *p3) |
static void | thread_mbox_put_block_data (void *p1, void *p2, void *p3) |
void | test_mbox_get_put_block_data (void) |
Test put and get mailbox with block data. More... | |
void | test_enhance_capability (void) |
void | test_define_multi_mbox (void) |
void | test_mbox_put_get_null (void) |
void | test_mbox_put_get_buffer (void) |
void | test_mbox_async_put_get_buffer (void) |
void | test_mbox_async_put_get_block (void) |
void | test_mbox_target_source_thread_buffer (void) |
void | test_mbox_incorrect_receiver_tid (void) |
void | test_mbox_incorrect_transmit_tid (void) |
void | test_mbox_timed_out_mbox_get (void) |
void | test_mbox_msg_tid_mismatch (void) |
void | test_mbox_dispose_size_0_msg (void) |
void | test_mbox_async_put_to_waiting_get (void) |
void | test_mbox_get_waiting_put_incorrect_tid (void) |
void | test_mbox_async_multiple_put (void) |
void | test_mbox_multiple_waiting_get (void) |
Variables | |
static struct k_mbox | mbox |
static k_tid_t | sender_tid |
static k_tid_t | receiver_tid |
static k_tid_t | random_tid |
static struct k_thread tdata rtdata async_tid | waiting_get_tid [5] |
static struct k_sem end_sema | sync_sema |
static enum mmsg_type | info_type |
static char | data [MAX_INFO_TYPE][64] |
static ZTEST_BMEM char | buffer [8] |
Test mailbox enhance capabilities. More... | |
#define MAIL_LEN 64 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#define TIMEOUT K_MSEC(100) |
enum mmsg_type |
|
static |
K_MBOX_DEFINE | ( | kmbox | ) |
TESTPOINT: init via K_MBOX_DEFINE
K_MBOX_DEFINE | ( | send_mbox | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
void test_define_multi_mbox | ( | void | ) |
TESTPOINT: init via k_mbox_init
void test_enhance_capability | ( | void | ) |
void test_mbox_async_multiple_put | ( | void | ) |
void test_mbox_async_put_get_block | ( | void | ) |
void test_mbox_async_put_get_buffer | ( | void | ) |
void test_mbox_async_put_to_waiting_get | ( | void | ) |
void test_mbox_dispose_size_0_msg | ( | void | ) |
void test_mbox_get_waiting_put_incorrect_tid | ( | void | ) |
void test_mbox_incorrect_receiver_tid | ( | void | ) |
void test_mbox_incorrect_transmit_tid | ( | void | ) |
void test_mbox_kdefine | ( | void | ) |
void test_mbox_kinit | ( | void | ) |
TESTPOINT: init via k_mbox_init
void test_mbox_msg_tid_mismatch | ( | void | ) |
void test_mbox_multiple_waiting_get | ( | void | ) |
void test_mbox_put_get_buffer | ( | void | ) |
void test_mbox_put_get_null | ( | void | ) |
void test_mbox_target_source_thread_buffer | ( | void | ) |
void test_mbox_timed_out_mbox_get | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
TESTPOINT: thread-thread data passing via mbox
|
static |
|
static |
TESTPOINT: mbox sync get buffer
TESTPOINT: mbox sync get buffer
TESTPOINT: mbox async get buffer
|
static |
TESTPOINT: mbox sync put empty message
TESTPOINT: mbox sync put buffer
TESTPOINT: mbox async put buffer
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |