Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
#include "test_queue.h"
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#define | LIST_LEN 2 |
#define | QUEUE_NUM 10 |
Verify that multiple queues can be defined simultaneously. More... | |
Functions | |
K_QUEUE_DEFINE (kqueue) | |
K_HEAP_DEFINE (mem_pool_fail, 8+128) | |
K_HEAP_DEFINE (mem_pool_pass, 64 *4+128) | |
static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static | K_THREAD_STACK_DEFINE (tstack1,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static | K_THREAD_STACK_DEFINE (tstack2,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static void | tqueue_append (struct k_queue *pqueue) |
static void | tqueue_get (struct k_queue *pqueue) |
static void | tIsr_entry_append (const void *p) |
static void | tIsr_entry_get (const void *p) |
static void | tThread_entry (void *p1, void *p2, void *p3) |
static void | tqueue_thread_thread (struct k_queue *pqueue) |
static void | tqueue_thread_isr (struct k_queue *pqueue) |
static void | tqueue_isr_thread (struct k_queue *pqueue) |
void | test_queue_thread2thread (void) |
Verify data passing between threads using queue. More... | |
void | test_queue_thread2isr (void) |
Verify data passing between thread and ISR. More... | |
void | test_queue_isr2thread (void) |
Verify data passing between ISR and thread. More... | |
static void | tThread_get (void *p1, void *p2, void *p3) |
static void | tqueue_get_2threads (struct k_queue *pqueue) |
void | test_queue_get_2threads (void) |
Verify k_queue_get() More... | |
static void | tqueue_alloc (struct k_queue *pqueue) |
void | test_queue_alloc (void) |
Test queue alloc append and prepend. More... | |
static void | queue_poll_race_consume (void *p1, void *p2, void *p3) |
void | test_queue_poll_race (void) |
void | test_multiple_queues (void) |
void | user_access_queue_private_data (void *p1, void *p2, void *p3) |
void | test_access_kernel_obj_with_priv_data (void) |
Test access kernel object with private data using system call. More... | |
static void | low_prio_wait_for_queue (void *p1, void *p2, void *p3) |
static void | high_prio_t1_wait_for_queue (void *p1, void *p2, void *p3) |
static void | high_prio_t2_wait_for_queue (void *p1, void *p2, void *p3) |
void | test_queue_multithread_competition (void) |
Test multi-threads to get data from a queue. More... | |
void | test_queue_unique_append (void) |
Verify k_queue_unique_append() More... | |
Variables | |
struct k_queue | queue |
static qdata_t | data [2] |
static qdata_t | data_p [2] |
static qdata_t | data_l [2] |
static qdata_t | data_sl [2] |
static qdata_t * | data_append |
static qdata_t * | data_prepend |
static struct k_thread | tdata |
static struct k_thread | tdata1 |
static struct k_thread | tdata2 |
static struct k_sem | end_sema |
#define LIST_LEN 2 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
|
static |
|
static |
K_HEAP_DEFINE | ( | mem_pool_fail | , |
8+ | 128 | ||
) |
K_HEAP_DEFINE | ( | mem_pool_pass | , |
64 *4+ | 128 | ||
) |
K_QUEUE_DEFINE | ( | kqueue | ) |
TESTPOINT: init via K_QUEUE_DEFINE
|
static |
|
static |
|
static |
|
static |
|
static |
void test_access_kernel_obj_with_priv_data | ( | void | ) |
Test access kernel object with private data using system call.
void test_multiple_queues | ( | void | ) |
void test_queue_poll_race | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
TESTPOINT: queue append
TESTPOINT: queue prepend
TESTPOINT: queue append list
TESTPOINT: queue merge slist
|
static |
TESTPOINT: queue get
TESTPOINT: queue get
|
static |
|
static |
TESTPOINT: isr-thread data passing via queue
|
static |
TESTPOINT: thread-isr data passing via queue
|
static |
TESTPOINT: thread-thread data passing via queue
|
static |
|
static |
void user_access_queue_private_data | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
struct k_queue queue |
|
static |
|
static |
|
static |