Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
main.c File Reference
#include <zephyr/ztest.h>
#include "test_msgq.h"

Macros

#define MAX_SZ   128
 

Functions

 K_HEAP_DEFINE (test_pool, 128 *2)
 
 K_THREAD_STACK_DECLARE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
void * msgq_api_setup (void)
 
 ZTEST_SUITE (msgq_api, NULL, msgq_api_setup, NULL, NULL, NULL)
 
 ZTEST_SUITE (msgq_api_1cpu, NULL, msgq_api_setup, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL)
 

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_DECLARE()

K_THREAD_STACK_DECLARE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)

◆ msgq_api_setup()

void * msgq_api_setup ( void  )

◆ ZTEST_SUITE() [1/2]

ZTEST_SUITE ( msgq_api  ,
NULL  ,
msgq_api_setup  ,
NULL  ,
NULL  ,
NULL   
)

◆ ZTEST_SUITE() [2/2]

ZTEST_SUITE ( msgq_api_1cpu  ,
NULL  ,
msgq_api_setup  ,
ztest_simple_1cpu_before  ,
ztest_simple_1cpu_after  ,
NULL   
)

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