Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
main.c File Reference
#include <ztest.h>

Macros

#define MAX_SZ   128
 

Functions

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_isr (void)
 Test thread to isr data passing via message queue. More...
 
void test_msgq_put_fail (void)
 Test returned error code during writing in msgq. More...
 
void test_msgq_get_fail (void)
 Test returned error code during reading from msgq. More...
 
void test_msgq_purge_when_put (void)
 Test purge a message queue. More...
 
void test_msgq_attrs_get (void)
 Test basic attributes of a message queue. More...
 
void test_msgq_alloc (void)
 Test k_msgq_alloc_init() More...
 
void test_msgq_pend_thread (void)
 Test pending writer in msgq. 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...
 
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_user_put_fail (void)
 Test returned error code during writing in msgq. More...
 
void test_msgq_user_get_fail (void)
 Test returned error code during reading from msgq. More...
 
void test_msgq_user_attrs_get (void)
 Test basic attributes of a message queue. More...
 
void test_msgq_user_purge_when_put (void)
 Test purge a message queue. More...
 
 K_HEAP_DEFINE (test_pool, 128 *2)
 
 K_THREAD_STACK_EXTERN (tstack)
 
void test_main (void)
 

Variables

struct k_msgq kmsgq
 
struct k_msgq msgq
 
struct k_sem end_sema
 
struct k_thread tdata
 

Macro Definition Documentation

◆ MAX_SZ

#define MAX_SZ   128

Function Documentation

◆ K_HEAP_DEFINE()

K_HEAP_DEFINE ( test_pool  ,
128 *  2 
)

◆ K_THREAD_STACK_EXTERN()

K_THREAD_STACK_EXTERN ( tstack  )

◆ test_main()

void test_main ( void  )

test case main entry

Variable Documentation

◆ end_sema

struct k_sem end_sema
extern

◆ kmsgq

struct k_msgq kmsgq
extern

◆ msgq

struct k_msgq msgq
extern

◆ tdata

struct k_thread tdata
extern