Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
timeout_order.c File Reference
#include <zephyr/kernel.h>
#include <zephyr/sys/printk.h>
#include <zephyr/ztest.h>

Macros

#define NUM_TIMEOUTS   3
 
#define STACKSIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 

Functions

static void thread (void *p1, void *p2, void *p3)
 
static K_THREAD_STACK_ARRAY_DEFINE (stacks, 3,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
 ZTEST (common_1cpu, test_timeout_order)
 Test timeout ordering.
 
void * common_setup (void)
 
 ZTEST_SUITE (common_1cpu, NULL, common_setup, ztest_simple_1cpu_before, ztest_simple_1cpu_after, NULL)
 

Variables

static struct k_timer timer [3]
 
static struct k_sem sem [3]
 
static int results [3]
 
static int cur
 
static struct k_thread threads [3]
 

Macro Definition Documentation

◆ NUM_TIMEOUTS

#define NUM_TIMEOUTS   3

◆ STACKSIZE

#define STACKSIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)

Function Documentation

◆ K_THREAD_STACK_ARRAY_DEFINE()

static K_THREAD_STACK_ARRAY_DEFINE ( stacks  ,
,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
static

◆ thread()

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

Variable Documentation

◆ cur

int cur
static

◆ results

int results[3]
static

◆ sem

struct k_sem sem[3]
static

◆ threads

struct k_thread threads[3]
static

◆ timer

struct k_timer timer[3]
static