Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Macros | |
#define | STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
#define | STACK_LEN 4 |
#define | HIGH_T1 0xaaa |
#define | HIGH_T2 0xbbb |
#define | LOW_PRIO 0xccc |
Functions | |
K_STACK_DEFINE (kstack, 4) | |
K_STACK_DEFINE (kstack_test_alloc, 4) | |
K_THREAD_STACK_DEFINE (threadstack1,(512+CONFIG_TEST_EXTRA_STACKSIZE)) | |
K_THREAD_STACK_DEFINE (threadstack_t1,(512+CONFIG_TEST_EXTRA_STACKSIZE)) | |
K_THREAD_STACK_DEFINE (threadstack_t2,(512+CONFIG_TEST_EXTRA_STACKSIZE)) | |
static void | tstack_push (struct k_stack *pstack) |
static void | tstack_pop (struct k_stack *pstack) |
static void | tIsr_entry_push (const void *p) |
static void | tIsr_entry_pop (const void *p) |
static void | tThread_entry (void *p1, void *p2, void *p3) |
static void | tstack_thread_thread (struct k_stack *pstack) |
static void | tstack_thread_isr (struct k_stack *pstack) |
void | test_stack_thread2thread (void) |
Test to verify data passing between threads via stack. More... | |
void | test_stack_user_thread2thread (void) |
Verifies data passing between user threads via stack. More... | |
void | test_stack_thread2isr (void) |
Verifies data passing between thread and ISR via stack. More... | |
void | test_stack_alloc_thread2thread (void) |
static void | low_prio_wait_for_stack (void *p1, void *p2, void *p3) |
static void | high_prio_t1_wait_for_stack (void *p1, void *p2, void *p3) |
static void | high_prio_t2_wait_for_stack (void *p1, void *p2, void *p3) |
void | test_stack_multithread_competition (void) |
Test multi-threads to get data from stack. More... | |
Variables | |
struct k_stack | stack |
struct k_thread | thread_data1 |
static struct k_thread | high_pro_thread_t1 |
static struct k_thread | high_pro_thread_t2 |
static ZTEST_DMEM stack_data_t | data [4] = { 0xABCD, 0x1234 } |
struct k_sem | end_sema1 |
#define HIGH_T1 0xaaa |
#define HIGH_T2 0xbbb |
#define LOW_PRIO 0xccc |
#define STACK_LEN 4 |
#define STACK_SIZE (512 + CONFIG_TEST_EXTRA_STACKSIZE) |
K_STACK_DEFINE | ( | kstack | , |
4 | |||
) |
TESTPOINT: init via K_STACK_DEFINE
K_STACK_DEFINE | ( | kstack_test_alloc | , |
4 | |||
) |
K_THREAD_STACK_DEFINE | ( | threadstack1 | , |
(512+CONFIG_TEST_EXTRA_STACKSIZE) | |||
) |
K_THREAD_STACK_DEFINE | ( | threadstack_t1 | , |
(512+CONFIG_TEST_EXTRA_STACKSIZE) | |||
) |
K_THREAD_STACK_DEFINE | ( | threadstack_t2 | , |
(512+CONFIG_TEST_EXTRA_STACKSIZE) | |||
) |
|
static |
TESTPOINT: stack pop
|
static |
TESTPOINT: stack push
|
static |
TESTPOINT: thread-isr data passing via stack
|
static |
TESTPOINT: thread-thread data passing via stack
|
static |
struct k_sem end_sema1 |
|
static |
|
static |
struct k_stack stack |
struct k_thread thread_data1 |