|
Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Data Structures | |
| struct | fifo_msg |
Macros | |
| #define | SIGNAL_RESULT 0x1ee7d00d |
| #define | FIFO_MSG_VALUE 0xdeadbeef |
| #define | MSGQ_MSG_SIZE 4 |
| #define | MSGQ_MAX_MSGS 16 |
| #define | MSGQ_MSG_VALUE {'a', 'b', 'c', 'd'} |
| #define | STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACKSIZE) |
| #define | TAG_0 10 |
| #define | TAG_1 11 |
| #define | TAG_2 12 |
| #define | TAG_3 13 |
| #define | USE_FIFO (1 << 0) |
| #define | USE_MSGQ (1 << 1) |
Functions | |
| K_THREAD_STACK_DEFINE (test_stack,(1024+CONFIG_TEST_EXTRA_STACKSIZE)) | |
| K_THREAD_STACK_DEFINE (test_loprio_stack,(1024+CONFIG_TEST_EXTRA_STACKSIZE)) | |
| void | test_poll_no_wait (void) |
| Test poll events with no wait. More... | |
| static | K_SEM_DEFINE (wait_sem, 0, 1) |
| static | K_FIFO_DEFINE (wait_fifo) |
| static void | poll_wait_helper (void *use_queuelike, void *msgq, void *p3) |
| void | check_results (struct k_poll_event *events, uint32_t event_type, bool is_available) |
| void | test_poll_wait (void) |
| Test polling with wait. More... | |
| static void | poll_cancel_helper (void *p1, void *p2, void *p3) |
| void | test_poll_cancel (bool is_main_low_prio) |
| Test polling of cancelled fifo. More... | |
| void | test_poll_cancel_main_low_prio (void) |
| void | test_poll_cancel_main_high_prio (void) |
| static | K_SEM_DEFINE (multi_sem, 0, 1) |
| static void | multi_lowprio (void *p1, void *p2, void *p3) |
| static | K_SEM_DEFINE (multi_reply, 0, 1) |
| static void | multi (void *p1, void *p2, void *p3) |
| static | K_SEM_DEFINE (multi_ready_sem, 1, 1) |
| void | test_poll_multi (void) |
| Test polling of multiple events. More... | |
| static void | threadstate (void *p1, void *p2, void *p3) |
| void | test_poll_threadstate (void) |
| Test polling of events by manipulating polling thread state. More... | |
| void | test_poll_grant_access (void) |
| void | test_poll_zero_events (void) |
| void | polling_event (void *p1, void *p2, void *p3) |
| void | test_detect_is_polling (void) |
| Detect is_polling is false in signal_poll_event() More... | |
Variables | |
| static struct k_sem | no_wait_sem |
| static struct k_fifo | no_wait_fifo |
| static struct k_poll_signal | no_wait_signal |
| static struct k_poll_signal | test_signal |
| static struct k_sem | zero_events_sem |
| static struct k_thread | test_thread |
| static struct k_thread | test_loprio_thread |
| static struct k_msgq | wait_msgq |
| static struct k_msgq * | wait_msgq_ptr |
| static struct k_poll_signal | wait_signal |
| struct fifo_msg | wait_msg = { NULL, 0xdeadbeef } |
| struct k_poll_event | wait_events [] |
| static struct k_fifo | cancel_fifo |
| static struct k_fifo | non_cancel_fifo |
| static struct k_poll_signal | signal |
| #define FIFO_MSG_VALUE 0xdeadbeef |
| #define MSGQ_MAX_MSGS 16 |
| #define MSGQ_MSG_SIZE 4 |
| #define SIGNAL_RESULT 0x1ee7d00d |
| #define STACK_SIZE (1024 + CONFIG_TEST_EXTRA_STACKSIZE) |
| #define TAG_0 10 |
| #define TAG_1 11 |
| #define TAG_2 12 |
| #define TAG_3 13 |
| #define USE_FIFO (1 << 0) |
| #define USE_MSGQ (1 << 1) |
| void check_results | ( | struct k_poll_event * | events, |
| uint32_t | event_type, | ||
| bool | is_available | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| K_THREAD_STACK_DEFINE | ( | test_loprio_stack | , |
| (1024+CONFIG_TEST_EXTRA_STACKSIZE) | |||
| ) |
| K_THREAD_STACK_DEFINE | ( | test_stack | , |
| (1024+CONFIG_TEST_EXTRA_STACKSIZE) | |||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct k_poll_event wait_events[] |
| struct fifo_msg wait_msg = { NULL, 0xdeadbeef } |
|
static |
|
static |
|
static |
|
static |