Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sw_isr_table.c File Reference
#include "sw_isr_common.h"
#include <zephyr/ztest.h>

Macros

#define PARENT_IRQ_FN(i, _)   CONFIG_2ND_LVL_INTR_0##i##_OFFSET
 
#define PARENT_DEV_FN(i, _)   (NULL)
 

Functions

 ZTEST (interrupt_feature, test_sw_isr_irq_parent_table_idx)
 Test sw_isr_table index-related function(s)
 
 ZTEST (interrupt_feature, test_sw_isr_irq_parent_table_dev)
 Test sw_isr_table device-related function(s)
 

Macro Definition Documentation

◆ PARENT_DEV_FN

#define PARENT_DEV_FN (   i,
 
)    (NULL)

◆ PARENT_IRQ_FN

#define PARENT_IRQ_FN (   i,
 
)    CONFIG_2ND_LVL_INTR_0##i##_OFFSET

Function Documentation

◆ ZTEST() [1/2]

ZTEST ( interrupt_feature  ,
test_sw_isr_irq_parent_table_dev   
)

Test sw_isr_table device-related function(s)

This test only works on driver that supports multi-instances

Validates that:

  • z_get_sw_isr_device_from_irq() returns the parent interrupt controller for an IRQN
  • z_get_sw_isr_irq_from_device() returns the IRQN of a parent interrupt controller

◆ ZTEST() [2/2]

ZTEST ( interrupt_feature  ,
test_sw_isr_irq_parent_table_idx   
)

Test sw_isr_table index-related function(s)

Validates that:

  • z_get_sw_isr_table_idx() returns the corresponding SW ISR table index for an IRQN