|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
7#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_INFINEON_XMC4XXX_INTC_H_
8#define ZEPHYR_INCLUDE_DT_BINDINGS_INTERRUPT_CONTROLLER_INFINEON_XMC4XXX_INTC_H_
10#define XMC4XXX_INTC_PORT_POS 0
11#define XMC4XXX_INTC_PORT_MASK 0xf
13#define XMC4XXX_INTC_PIN_POS 4
14#define XMC4XXX_INTC_PIN_MASK 0xf
16#define XMC4XXX_INTC_LINE_POS 8
17#define XMC4XXX_INTC_LINE_MASK 0x7
19#define XMC4XXX_INTC_ERU_SRC_POS 11
20#define XMC4XXX_INTC_ERU_SRC_MASK 0x7
22#define XMC4XXX_INTC_GET_PORT(mx) ((mx >> XMC4XXX_INTC_PORT_POS) & XMC4XXX_INTC_PORT_MASK)
23#define XMC4XXX_INTC_GET_PIN(mx) ((mx >> XMC4XXX_INTC_PIN_POS) & XMC4XXX_INTC_PIN_MASK)
24#define XMC4XXX_INTC_GET_LINE(mx) ((mx >> XMC4XXX_INTC_LINE_POS) & XMC4XXX_INTC_LINE_MASK)
25#define XMC4XXX_INTC_GET_ERU_SRC(mx) ((mx >> XMC4XXX_INTC_ERU_SRC_POS) & XMC4XXX_INTC_ERU_SRC_MASK)
27#define XMC4XXX_INTC_SET_LINE_MAP(port, pin, eru_src, line) \
28 ((port) << XMC4XXX_INTC_PORT_POS | (pin) << XMC4XXX_INTC_PIN_POS | \
29 (eru_src) << XMC4XXX_INTC_ERU_SRC_POS | (line) << XMC4XXX_INTC_LINE_POS)