Zephyr API Documentation  3.7.0-rc1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Devicetree Interrupt Controller API

Macros

#define DT_INTC_GET_AGGREGATOR_LEVEL(node_id)   UTIL_INC(DT_IRQ_LEVEL(node_id))
 Get the aggregator level of an interrupt controller.
 
#define DT_INST_INTC_GET_AGGREGATOR_LEVEL(inst)   DT_INTC_GET_AGGREGATOR_LEVEL(DT_DRV_INST(inst))
 Get the aggregator level of a DT_DRV_COMPAT interrupt controller.
 

Detailed Description

Macro Definition Documentation

◆ DT_INST_INTC_GET_AGGREGATOR_LEVEL

#define DT_INST_INTC_GET_AGGREGATOR_LEVEL (   inst)    DT_INTC_GET_AGGREGATOR_LEVEL(DT_DRV_INST(inst))

#include <zephyr/devicetree/interrupt_controller.h>

Get the aggregator level of a DT_DRV_COMPAT interrupt controller.

Note
Aggregator level is equivalent to IRQ_LEVEL + 1 (a 2nd level aggregator has Zephyr level 1 IRQ encoding)
Parameters
instinstance of an interrupt controller
Returns
Level of the interrupt controller

◆ DT_INTC_GET_AGGREGATOR_LEVEL

#define DT_INTC_GET_AGGREGATOR_LEVEL (   node_id)    UTIL_INC(DT_IRQ_LEVEL(node_id))

#include <zephyr/devicetree/interrupt_controller.h>

Get the aggregator level of an interrupt controller.

Note
Aggregator level is equivalent to IRQ_LEVEL + 1 (a 2nd level aggregator has Zephyr level 1 IRQ encoding)
Parameters
node_idnode identifier of an interrupt controller
Returns
Level of the interrupt controller