Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
#include "test_fifo.h"
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#define | LIST_LEN 2 |
Functions | |
K_FIFO_DEFINE (kfifo) | |
static | K_THREAD_STACK_DEFINE (tstack,(512+CONFIG_TEST_EXTRA_STACKSIZE)) |
static void | tfifo_put (struct k_fifo *pfifo) |
static void | tfifo_get (struct k_fifo *pfifo) |
static void | tIsr_entry_put (const void *p) |
static void | tIsr_entry_get (const void *p) |
static void | tThread_entry (void *p1, void *p2, void *p3) |
static void | tfifo_thread_thread (struct k_fifo *pfifo) |
static void | tfifo_thread_isr (struct k_fifo *pfifo) |
static void | tfifo_isr_thread (struct k_fifo *pfifo) |
static void | tfifo_is_empty (void *p) |
void | test_fifo_thread2thread (void) |
Test thread to thread data passing via fifo. More... | |
void | test_fifo_thread2isr (void) |
Test isr to thread data passing via fifo. More... | |
void | test_fifo_isr2thread (void) |
Test thread to isr data passing via fifo. More... | |
void | test_fifo_is_empty_thread (void) |
Test empty fifo. More... | |
void | test_fifo_is_empty_isr (void) |
Test empty fifo in interrupt context. More... | |
Variables | |
struct k_fifo | fifo |
static fdata_t | data [2] |
static fdata_t | data_l [2] |
static fdata_t | data_sl [2] |
static struct k_thread | tdata |
static struct k_sem | end_sema |
#define LIST_LEN 2 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
K_FIFO_DEFINE | ( | kfifo | ) |
TESTPOINT: init via K_FIFO_DEFINE
|
static |
TESTPOINT: return false when data available
TESTPOINT: return true with data unavailable
TESTPOINT: thread-isr data passing via fifo
TESTPOINT: fifo put
TESTPOINT: fifo put list
TESTPOINT: fifo put slist
TESTPOINT: isr-thread data passing via fifo
TESTPOINT: thread-thread data passing via fifo
|
static |
|
static |
|
static |
|
static |
struct k_fifo fifo |
|
static |