Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
#define | MAIL_LEN 64 |
#define | HIGH_PRIO 1 |
#define | LOW_PRIO 8 |
Enumerations | |
enum | mmsg_type { PUT_GET_NULL = 0 , TARGET_SOURCE } |
Functions | |
static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
static | K_THREAD_STACK_DEFINE (high_stack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
static | K_THREAD_STACK_DEFINE (low_stack,(512+CONFIG_TEST_EXTRA_STACK_SIZE)) |
static void | msg_sender (struct k_mbox *pmbox, k_timeout_t timeout) |
static void | msg_receiver (struct k_mbox *pmbox, k_tid_t thd_id, k_timeout_t timeout) |
static void | test_mbox_init (void) |
static void | test_send (void *p1, void *p2, void *p3) |
ZTEST (mbox_usage, test_msg_receiver) | |
static void | test_send_un (void *p1, void *p2, void *p3) |
ZTEST (mbox_usage, test_msg_receiver_unlimited) | |
static void | thread_low_prio (void *p1, void *p2, void *p3) |
static void | thread_high_prio (void *p1, void *p2, void *p3) |
ZTEST (mbox_usage_1cpu, test_multi_thread_send_get) | |
void * | setup_mbox_usage (void) |
ZTEST_SUITE (mbox_usage, NULL, setup_mbox_usage, NULL, NULL, NULL) | |
ZTEST_SUITE (mbox_usage_1cpu, NULL, setup_mbox_usage, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL) | |
Variables | |
static struct k_thread tdata high_tdata | low_tdata |
static struct k_mbox mbox | multi_tmbox |
static struct k_sem | sync_sema |
static k_tid_t | tid1 |
static k_tid_t | receiver_tid |
static char | msg_data [2][64] |
static enum mmsg_type | info_type |
#define HIGH_PRIO 1 |
#define LOW_PRIO 8 |
#define MAIL_LEN 64 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACK_SIZE) |
enum mmsg_type |
|
static |
|
static |
|
static |
|
static |
|
static |
void * setup_mbox_usage | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
ZTEST | ( | mbox_usage | , |
test_msg_receiver | |||
) |
ZTEST | ( | mbox_usage | , |
test_msg_receiver_unlimited | |||
) |
ZTEST | ( | mbox_usage_1cpu | , |
test_multi_thread_send_get | |||
) |
ZTEST_SUITE | ( | mbox_usage | , |
NULL | , | ||
setup_mbox_usage | , | ||
NULL | , | ||
NULL | , | ||
NULL | |||
) |
ZTEST_SUITE | ( | mbox_usage_1cpu | , |
NULL | , | ||
setup_mbox_usage | , | ||
ztest_simple_1cpu_before | , | ||
ztest_simple_1cpu_after | , | ||
NULL | |||
) |
|
static |
|
static |
|
static |
|
static |
|
static |