Zephyr API Documentation 4.1.99
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)
 
static void test_end_threads_join (void)
 
static void msgq_api_test_after (void *data)
 
static void msgq_api_test_1cpu_after (void *data)
 
 ZTEST_SUITE (msgq_api, NULL, msgq_api_setup, NULL, msgq_api_test_after, NULL)
 
 ZTEST_SUITE (msgq_api_1cpu, NULL, msgq_api_setup, ztest_simple_1cpu_before, msgq_api_test_1cpu_after, NULL)
 

Variables

struct k_msgq kmsgq
 
struct k_msgq msgq
 
struct k_sem end_sema
 
struct k_thread tdata
 
k_tid_t tids [2]
 

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 )

◆ msgq_api_test_1cpu_after()

static void msgq_api_test_1cpu_after ( void * data)
static

◆ msgq_api_test_after()

static void msgq_api_test_after ( void * data)
static

◆ test_end_threads_join()

static void test_end_threads_join ( void )
static

◆ ZTEST_SUITE() [1/2]

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

◆ ZTEST_SUITE() [2/2]

ZTEST_SUITE ( msgq_api_1cpu ,
NULL ,
msgq_api_setup ,
ztest_simple_1cpu_before ,
msgq_api_test_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

◆ tids

k_tid_t tids[2]
extern