Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
#include "test_msgq.h"
Functions | |
K_MSGQ_DEFINE (kmsgq, 4, 2, 4) | |
K_MSGQ_DEFINE (kmsgq_test_alloc, 4, 2, 4) | |
K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE)) | |
K_THREAD_STACK_DEFINE (tstack1,(512+CONFIG_TEST_EXTRA_STACKSIZE)) | |
K_THREAD_STACK_DEFINE (tstack2,(512+CONFIG_TEST_EXTRA_STACKSIZE)) | |
static void | put_msgq (struct k_msgq *pmsgq) |
static void | get_msgq (struct k_msgq *pmsgq) |
static void | purge_msgq (struct k_msgq *pmsgq) |
static void | tisr_entry (const void *p) |
static void | thread_entry (void *p1, void *p2, void *p3) |
static void | msgq_thread (struct k_msgq *pmsgq) |
static void | thread_entry_overflow (void *p1, void *p2, void *p3) |
static void | msgq_thread_overflow (struct k_msgq *pmsgq) |
static void | msgq_isr (struct k_msgq *pmsgq) |
static void | thread_entry_get_data (void *p1, void *p2, void *p3) |
static void | pend_thread_entry (void *p1, void *p2, void *p3) |
static void | msgq_thread_data_passing (struct k_msgq *pmsgq) |
static void | get_empty_entry (void *p1, void *p2, void *p3) |
static void | put_full_entry (void *p1, void *p2, void *p3) |
void | test_msgq_thread (void) |
Test thread to thread data passing via message queue. More... | |
void | test_msgq_thread_overflow (void) |
Test thread to thread data passing via message queue. More... | |
void | test_msgq_user_thread (void) |
Test user thread to kernel thread data passing via message queue. More... | |
void | test_msgq_user_thread_overflow (void) |
Test thread to thread data passing via message queue. More... | |
void | test_msgq_isr (void) |
Test thread to isr data passing via message queue. More... | |
void | test_msgq_pend_thread (void) |
Test pending writer in msgq. More... | |
void | test_msgq_alloc (void) |
Test k_msgq_alloc_init() More... | |
void | test_msgq_empty (void) |
Get message from an empty queue. More... | |
void | test_msgq_full (void) |
Put message to a full queue. More... | |
Variables | |
struct k_msgq | msgq |
struct k_msgq | msgq1 |
struct k_thread | tdata |
struct k_thread | tdata1 |
struct k_thread | tdata2 |
static ZTEST_BMEM char | tbuffer [4 *2] |
static ZTEST_DMEM char | tbuffer1 [4] |
static ZTEST_DMEM uint32_t | data [2] = { 0xABCD , 0x1234 } |
struct k_sem | end_sema |
|
static |
|
static |
TESTPOINT: Check if msg read is the msg deleted
TESTPOINT: msgq free get
TESTPOINT: msgq used get
K_MSGQ_DEFINE | ( | kmsgq | , |
4 | , | ||
2 | , | ||
4 | |||
) |
TESTPOINT: init via K_MSGQ_DEFINE
K_MSGQ_DEFINE | ( | kmsgq_test_alloc | , |
4 | , | ||
2 | , | ||
4 | |||
) |
K_THREAD_STACK_DEFINE | ( | tstack | , |
(512+CONFIG_TEST_EXTRA_STACKSIZE) | |||
) |
K_THREAD_STACK_DEFINE | ( | tstack1 | , |
(512+CONFIG_TEST_EXTRA_STACKSIZE) | |||
) |
K_THREAD_STACK_DEFINE | ( | tstack2 | , |
(512+CONFIG_TEST_EXTRA_STACKSIZE) | |||
) |
|
static |
TESTPOINT: thread-isr data passing via message queue
TESTPOINT: msgq purge
|
static |
TESTPOINT: thread-thread data passing via message queue
TESTPOINT: msgq purge
|
static |
TESTPOINT: msgq purge
|
static |
TESTPOINT: thread-thread data passing via message queue
TESTPOINT: msgq purge
|
static |
|
static |
|
static |
|
static |
TESTPOINT: Check if k_msgq_peek reads msgq in FIFO manner. Everytime msg is enqueued, msg read should always be the first message
TESTPOINT: msgq free get
TESTPOINT: msgq used get
|
static |
|
static |
|
static |
|
static |
|
static |
struct k_sem end_sema |
struct k_msgq msgq |
struct k_msgq msgq1 |
|
static |
|
static |
struct k_thread tdata |
struct k_thread tdata1 |
struct k_thread tdata2 |