|
Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
Tests for the events kernel object. More...
| void | test_k_event_init (void) |
| Test the k_event_init() API. | |
| static void | receive_existing_events (void) |
| static void | reset_on_wait (void) |
| static void | receiver (void *p1, void *p2, void *p3) |
| receiver helper task | |
| static void | test_receive_existing_events (void) |
| Works with receive_existing_events() to test the waiting for events when some events have already been sent. | |
| static void | test_reset_on_wait (void) |
| Works with reset_on_wait() to verify that the events stored in the event object are reset at the appropriate time. | |
| void | test_wake_multiple_threads (void) |
| void | test_event_deliver (void) |
| Test basic k_event_post() and k_event_set() APIs. | |
| void | test_event_receive (void) |
| Test delivery and reception of events. | |
| static void | entry_extra1 (void *p1, void *p2, void *p3) |
| static void | entry_extra2 (void *p1, void *p2, void *p3) |
| static void | reset_on_receive (void) |
| static void | test_reset_on_receive (void) |
| Works with reset_on_receive() to verify that the events stored in the event object are reset at the appropriate times. | |
| void * | sys_events_setup (void) |
Tests for the events kernel object.
Verify zephyr event apis under different context
|
static |
|
static |
|
static |
|
static |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/event_api/src/test_event_apis.c>
receiver helper task
|
static |
|
static |
| void * sys_events_setup | ( | void | ) |
| void test_event_deliver | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/event_api/src/test_event_apis.c>
Test basic k_event_post() and k_event_set() APIs.
Tests the basic k_event_post() and k_event_set() APIs. This does not involve waking or receiving events.
| void test_event_receive | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/event_api/src/test_event_apis.c>
Test delivery and reception of events.
Testing both the delivery and reception of events involves the use of multiple threads and uses the following event related APIs: k_event_post(), k_event_set(), k_event_wait() and k_event_wait_all().
| void test_k_event_init | ( | void | ) |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/event_api/src/test_event_apis.c>
Test the k_event_init() API.
This is a white-box test to verify that the k_event_init() API initializes the fields of a k_event structure as expected.
|
static |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/event_api/src/test_event_apis.c>
Works with receive_existing_events() to test the waiting for events when some events have already been sent.
No additional events are sent to the event object during this block of testing.
|
static |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/sys_event/src/main.c>
Works with reset_on_receive() to verify that the events stored in the event object are reset at the appropriate times.
|
static |
#include </home/runner/work/safety-doc/zephyr/tests/kernel/events/event_api/src/test_event_apis.c>
Works with reset_on_wait() to verify that the events stored in the event object are reset at the appropriate time.
| void test_wake_multiple_threads | ( | void | ) |