Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
prevent_irq.c File Reference

Macros

#define DURATION   5
 
#define HANDLER_TOKEN   0xDEADBEEF
 
#define TIMER_DELAY_US   (128 * 1000000 / CONFIG_SYS_CLOCK_TICKS_PER_SEC)
 

Functions

static void timer_handler (struct k_timer *timer)
 
void test_prevent_interruption (void)
 Test interrupt prevention.
 
 ZTEST_SUITE (interrupt_feature, NULL, NULL, NULL, NULL, NULL)
 

Variables

static struct k_timer irqlock_timer
 
volatile uint32_t handler_result
 

Macro Definition Documentation

◆ DURATION

#define DURATION   5

◆ HANDLER_TOKEN

#define HANDLER_TOKEN   0xDEADBEEF

◆ TIMER_DELAY_US

#define TIMER_DELAY_US   (128 * 1000000 / CONFIG_SYS_CLOCK_TICKS_PER_SEC)

Function Documentation

◆ timer_handler()

static void timer_handler ( struct k_timer * timer)
static

◆ ZTEST_SUITE()

ZTEST_SUITE ( interrupt_feature ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL  )

Variable Documentation

◆ handler_result

volatile uint32_t handler_result

◆ irqlock_timer

struct k_timer irqlock_timer
static