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

Macros

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 
#define LIST_LEN   4
 
#define LOOPS   32
 

Functions

static K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
static void tqueue_append (struct k_queue *pqueue)
 
static void tqueue_get (struct k_queue *pqueue)
 
static void tqueue_find_and_remove (struct k_queue *pqueue)
 
static void tIsr_entry (const void *p)
 
static void tThread_entry (void *p1, void *p2, void *p3)
 
static void tqueue_read_write (struct k_queue *pqueue)
 
 ZTEST (queue_api_1cpu, test_queue_loop)
 Test queue operations in loop.
 

Variables

static qdata_t data [4]
 
static qdata_t data_p [4]
 
static qdata_t data_r [4]
 
static struct k_queue queue
 
static struct k_thread tdata
 
static struct k_sem end_sema
 

Macro Definition Documentation

◆ LIST_LEN

#define LIST_LEN   4

◆ LOOPS

#define LOOPS   32

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)

Function Documentation

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( tstack  ,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
static

◆ tIsr_entry()

static void tIsr_entry ( const void *  p)
static

◆ tqueue_append()

static void tqueue_append ( struct k_queue pqueue)
static

TESTPOINT: queue append

TESTPOINT: queue prepend

TESTPOINT: queue find and remove

◆ tqueue_find_and_remove()

static void tqueue_find_and_remove ( struct k_queue pqueue)
static

TESTPOINT: queue find and remove

◆ tqueue_get()

static void tqueue_get ( struct k_queue pqueue)
static

TESTPOINT: queue get

TESTPOINT: queue get

◆ tqueue_read_write()

static void tqueue_read_write ( struct k_queue pqueue)
static

TESTPOINT: thread-isr-thread data passing via queue

◆ tThread_entry()

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

Variable Documentation

◆ data

qdata_t data[4]
static

◆ data_p

qdata_t data_p[4]
static

◆ data_r

qdata_t data_r[4]
static

◆ end_sema

struct k_sem end_sema
static

◆ queue

struct k_queue queue
static

◆ tdata

struct k_thread tdata
static