Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_msgq_purge.c File Reference
#include "test_msgq.h"

Functions

 K_THREAD_STACK_DECLARE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
static void tThread_entry (void *p1, void *p2, void *p3)
 
static void purge_when_put (struct k_msgq *q)
 
 ZTEST (msgq_api_1cpu, test_msgq_purge_when_put)
 Test purge a message queue.
 
 ZTEST_USER (msgq_api, test_msgq_user_purge_when_put)
 Test purge a message queue.
 

Variables

struct k_thread tdata
 
struct k_msgq msgq
 
static ZTEST_BMEM char tbuffer [4 *2]
 
static ZTEST_DMEM uint32_t data [2] = { 0xABCD , 0x1234 }
 

Function Documentation

◆ K_THREAD_STACK_DECLARE()

K_THREAD_STACK_DECLARE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)

◆ purge_when_put()

static void purge_when_put ( struct k_msgq q)
static

TESTPOINT: msgq purge while another thread waiting to put msg

◆ tThread_entry()

static void tThread_entry ( void *  p1,
void *  p2,
void *  p3 
)
static

Variable Documentation

◆ data

ZTEST_DMEM uint32_t data[2] = { 0xABCD , 0x1234 }
static

◆ msgq

struct k_msgq msgq
extern

◆ tbuffer

ZTEST_BMEM char tbuffer[4 * 2]
static

◆ tdata

struct k_thread tdata
extern