Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
|
|
3.0.0 |
#include <zephyr.h>
#include <tc_util.h>
#include <ztest.h>
#include <kernel.h>
#include <spinlock.h>
Macros | |
#define | CPU1_STACK_SIZE 1024 |
Functions | |
K_THREAD_STACK_DEFINE (cpu1_stack, 1024) | |
void | test_spinlock_basic (void) |
Test basic spinlock. More... | |
void | bounce_once (int id) |
void | cpu1_fn (void *p1, void *p2, void *p3) |
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... | |
void | test_main (void) |
Variables | |
struct k_thread | cpu1_thread |
static struct k_spinlock | bounce_lock |
volatile int | bounce_owner |
volatile int | bounce_done |
#define CPU1_STACK_SIZE 1024 |
void bounce_once | ( | int | id | ) |
void cpu1_fn | ( | void * | p1, |
void * | p2, | ||
void * | p3 | ||
) |
K_THREAD_STACK_DEFINE | ( | cpu1_stack | , |
1024 | |||
) |
void test_main | ( | void | ) |
test case main entry
volatile int bounce_done |
|
static |
volatile int bounce_owner |
struct k_thread cpu1_thread |