Zephyr API Documentation 4.1.99
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)
 
void test_starve (void)
 
 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

◆ test_starve()

void test_starve ( void )

◆ 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