Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dynamic_shared_irq.c File Reference
#include "test_shared_irq.h"

Data Structures

struct  shared_irq_fixture
 

Macros

#define TABLE_OFFSET   0
 

Functions

static void reset_test_vector (void)
 
static void dynamic_shared_irq_suite_after (void *data)
 
static void dummy_isr (const void *data)
 
static unsigned int get_irq_slot (unsigned int start)
 
static void * dynamic_shared_irq_suite_setup (void)
 
static void dynamic_shared_irq_suite_before (void *data)
 
 ZTEST (shared_irq_feature, test_dynamic_shared_irq_write)
 Test writing to a vector with a shared interrupt.
 
 ZTEST (shared_irq_feature, test_dynamic_shared_irq_disconnect_write)
 Test writing to a vector after an ISR/arg disconnect.
 
 ZTEST_SUITE (shared_irq_feature, NULL, dynamic_shared_irq_suite_setup, dynamic_shared_irq_suite_before, dynamic_shared_irq_suite_after, NULL)
 

Variables

static struct shared_irq_fixture fixture
 

Macro Definition Documentation

◆ TABLE_OFFSET

#define TABLE_OFFSET   0

Function Documentation

◆ dummy_isr()

static void dummy_isr ( const void *  data)
static

◆ dynamic_shared_irq_suite_after()

static void dynamic_shared_irq_suite_after ( void *  data)
static

◆ dynamic_shared_irq_suite_before()

static void dynamic_shared_irq_suite_before ( void *  data)
static

◆ dynamic_shared_irq_suite_setup()

static void * dynamic_shared_irq_suite_setup ( void  )
static

◆ get_irq_slot()

static unsigned int get_irq_slot ( unsigned int  start)
static

◆ reset_test_vector()

static void reset_test_vector ( void  )
static

◆ ZTEST() [1/2]

ZTEST ( shared_irq_feature  ,
test_dynamic_shared_irq_disconnect_write   
)

Test writing to a vector after an ISR/arg disconnect.

This tests if ISR/arg pairs are disconnected successfully and the interrupts are "unshared" whenever a single ISR/arg pair is left.

◆ ZTEST() [2/2]

ZTEST ( shared_irq_feature  ,
test_dynamic_shared_irq_write   
)

Test writing to a vector with a shared interrupt.

This tests if interrupts are dynamically shared successfully (i.e: multiple ISR/arg pairs are called whenever the interrupt they were registered for is triggered).

◆ ZTEST_SUITE()

ZTEST_SUITE ( shared_irq_feature  ,
NULL  ,
dynamic_shared_irq_suite_setup  ,
dynamic_shared_irq_suite_before  ,
dynamic_shared_irq_suite_after  ,
NULL   
)

Variable Documentation

◆ fixture

struct shared_irq_fixture fixture
static