Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
Tests for spinlock. More...
Functions | |
void | test_spinlock_basic (void) |
Test basic spinlock. More... | |
void | test_spinlock_bounce (void) |
Test spinlock with bounce. More... | |
void | test_spinlock_mutual_exclusion (void) |
Test basic mutual exclusion using interrupt masking. More... | |
void | test_spinlock_no_recursive (void) |
Test spinlock cannot be recursive. More... | |
void | test_spinlock_unlock_error (void) |
Test unlocking incorrect spinlock. More... | |
void | test_spinlock_release_error (void) |
Test unlocking incorrect spinlock. More... | |
Tests for spinlock.
void test_spinlock_basic | ( | void | ) |
#include <tests/kernel/spinlock/src/main.c>
Test basic spinlock.
void test_spinlock_bounce | ( | void | ) |
void test_spinlock_mutual_exclusion | ( | void | ) |
#include <tests/kernel/spinlock/src/main.c>
Test basic mutual exclusion using interrupt masking.
void test_spinlock_no_recursive | ( | void | ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test spinlock cannot be recursive.
Validate using spinlock recursive will trigger assertion.
void test_spinlock_release_error | ( | void | ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking incorrect spinlock.
Validate unlocking incorrect spinlock will trigger assertion.
void test_spinlock_unlock_error | ( | void | ) |
#include <tests/kernel/spinlock/src/spinlock_error_case.c>
Test unlocking incorrect spinlock.
Validate unlocking incorrect spinlock will trigger assertion.