zpp
Zephyr C++20 Framework
main.cpp File Reference
#include <zephyr/ztest.h>
#include <zephyr/kernel.h>
#include <zpp/atomic_bitset.hpp>
#include <zpp/atomic_var.hpp>
Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

 ZTEST_SUITE (zpp_atomic_tests, NULL, NULL, NULL, NULL, NULL)
 
 ZTEST (zpp_atomic_tests, test_atomic_bitset)
 

Function Documentation

◆ ZTEST()

ZTEST ( zpp_atomic_tests  ,
test_atomic_bitset   
)

Definition at line 23 of file main.cpp.

24 {
25  g_bitset.store(0, true);
26  zassert_true(g_bitset.load(0) == true, "load(0) failed");
27 
28  g_bitset.store(319, true);
29  zassert_true(g_bitset.load(319) == true, "load(319) failed");
30 }

◆ ZTEST_SUITE()

ZTEST_SUITE ( zpp_atomic_tests  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)