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

Macros

#define STAMP_INTERVAL_s   60
 
#define TIMER_DELAY_ms   500
 
#define BUSY_WAIT_ms   100
 

Functions

static void handler (struct k_timer *timer)
 
static const char * tag (void)
 
 ZTEST (starve_fn, test_starve)
 
 ZTEST_SUITE (starve_fn, NULL, NULL, NULL, NULL, NULL)
 

Variables

static volatile uint32_t na
 
static uint32_t iters
 
static uint32_t now
 

Macro Definition Documentation

◆ BUSY_WAIT_ms

#define BUSY_WAIT_ms   100

◆ STAMP_INTERVAL_s

#define STAMP_INTERVAL_s   60

◆ TIMER_DELAY_ms

#define TIMER_DELAY_ms   500

Function Documentation

◆ handler()

static void handler ( struct k_timer *  timer)
static

◆ tag()

static const char * tag ( void  )
static

◆ ZTEST()

ZTEST ( starve_fn  ,
test_starve   
)

◆ ZTEST_SUITE()

ZTEST_SUITE ( starve_fn  ,
NULL  ,
NULL  ,
NULL  ,
NULL  ,
NULL   
)

Variable Documentation

◆ iters

uint32_t iters
static

◆ na

volatile uint32_t na
static

◆ now

uint32_t now
static