Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
Infineon XMC4xxx interrupt controller

Devicetree macros for the Infineon XMC4xxx interrupt controller. More...

Files

file  infineon-xmc4xxx-intc.h
 Infineon XMC4xxx interrupt controller devicetree macros.

Macros

#define XMC4XXX_INTC_GET_PORT(mx)
 Extract the GPIO port from a line mapping value.
#define XMC4XXX_INTC_GET_PIN(mx)
 Extract the GPIO pin from a line mapping value.
#define XMC4XXX_INTC_GET_LINE(mx)
 Extract the ERU output line from a line mapping value.
#define XMC4XXX_INTC_GET_ERU_SRC(mx)
 Extract the ERU input source from a line mapping value.
#define XMC4XXX_INTC_SET_LINE_MAP(port, pin, eru_src, line)
 Encode an ERU line mapping value.

Detailed Description

Devicetree macros for the Infineon XMC4xxx interrupt controller.

Macros for encoding the ERU (Event Request Unit) line mapping cells used with the infineon,xmc4xxx-intc compatible interrupt controller. XMC4XXX_INTC_SET_LINE_MAP() packs the GPIO port and pin, the ERU input source eru_src and the ERU output line into a single mapping value; the matching XMC4XXX_INTC_GET_* accessors extract each field.

&some_device {
interrupt-names = "rx";
interrupts = <XMC4XXX_INTC_SET_LINE_MAP(0, 1, 0, 0) 0>;
};

Macro Definition Documentation

◆ XMC4XXX_INTC_GET_ERU_SRC

#define XMC4XXX_INTC_GET_ERU_SRC ( mx)

#include <zephyr/dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h>

Value:
((mx >> XMC4XXX_INTC_ERU_SRC_POS) & XMC4XXX_INTC_ERU_SRC_MASK)

Extract the ERU input source from a line mapping value.

◆ XMC4XXX_INTC_GET_LINE

#define XMC4XXX_INTC_GET_LINE ( mx)

#include <zephyr/dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h>

Value:
((mx >> XMC4XXX_INTC_LINE_POS) & XMC4XXX_INTC_LINE_MASK)

Extract the ERU output line from a line mapping value.

◆ XMC4XXX_INTC_GET_PIN

#define XMC4XXX_INTC_GET_PIN ( mx)

#include <zephyr/dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h>

Value:
((mx >> XMC4XXX_INTC_PIN_POS) & XMC4XXX_INTC_PIN_MASK)

Extract the GPIO pin from a line mapping value.

◆ XMC4XXX_INTC_GET_PORT

#define XMC4XXX_INTC_GET_PORT ( mx)

#include <zephyr/dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h>

Value:
((mx >> XMC4XXX_INTC_PORT_POS) & XMC4XXX_INTC_PORT_MASK)

Extract the GPIO port from a line mapping value.

◆ XMC4XXX_INTC_SET_LINE_MAP

#define XMC4XXX_INTC_SET_LINE_MAP ( port,
pin,
eru_src,
line )

#include <zephyr/dt-bindings/interrupt-controller/infineon-xmc4xxx-intc.h>

Value:
((port) << XMC4XXX_INTC_PORT_POS | (pin) << XMC4XXX_INTC_PIN_POS | \
(eru_src) << XMC4XXX_INTC_ERU_SRC_POS | (line) << XMC4XXX_INTC_LINE_POS)

Encode an ERU line mapping value.

Parameters
portGPIO port number.
pinGPIO pin number.
eru_srcERU input source.
lineERU output line.