Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Events

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)
 

Detailed Description

Tests for the events kernel object.

Verify zephyr event apis under different context

Function Documentation

◆ entry_extra1()

static void entry_extra1 ( void * p1,
void * p2,
void * p3 )
static

◆ entry_extra2()

static void entry_extra2 ( void * p1,
void * p2,
void * p3 )
static

◆ receive_existing_events()

static void receive_existing_events ( void )
static

◆ receiver()

static void receiver ( void * p1,
void * p2,
void * p3 )
static

◆ reset_on_receive()

static void reset_on_receive ( void )
static

◆ reset_on_wait()

◆ sys_events_setup()

◆ test_event_deliver()

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.

◆ test_event_receive()

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().

◆ test_k_event_init()

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.

◆ test_receive_existing_events()

static void test_receive_existing_events ( void )
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.

◆ test_reset_on_receive()

static void test_reset_on_receive ( void )
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.

◆ test_reset_on_wait()

static void test_reset_on_wait ( void )
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.

◆ test_wake_multiple_threads()