Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
main.c File Reference
#include <ztest.h>

Functions

void test_k_event_init (void)
 
void test_event_deliver (void)
 
void test_event_receive (void)
 
void test_main (void)
 

Function Documentation

◆ test_event_deliver()

void test_event_deliver ( void  )

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  )

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  )

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

void test_main ( void  )