|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
Devicetree macros for the Microchip XEC ECIA interrupt aggregator. More...
Files | |
| file | mchp-xec-ecia.h |
| Microchip XEC ECIA interrupt controller devicetree macros. | |
Macros | |
| #define | MCHP_XEC_ECIA_GIRQ_ENC(g, b) |
| Encode a peripheral's GIRQ and GIRQ bit position only. | |
| #define | MCHP_XEC_ECIA(g, gb, na, nd) |
| Encode peripheral interrupt information into a 32-bit value. | |
| #define | MCHP_XEC_ECIA_GIRQ(e) |
| Extract the GIRQ number from an encoded MCHP_XEC_ECIA() value. | |
| #define | MCHP_XEC_ECIA_GIRQ_POS(e) |
| Extract the source bit position from an encoded MCHP_XEC_ECIA() value. | |
| #define | MCHP_XEC_ECIA_NVIC_AGGR(e) |
| Extract the aggregated GIRQ NVIC number from an encoded MCHP_XEC_ECIA() value. | |
| #define | MCHP_XEC_ECIA_NVIC_DIRECT(e) |
| Extract the direct NVIC number from an encoded MCHP_XEC_ECIA() value. | |
Devicetree macros for the Microchip XEC ECIA interrupt aggregator.
Macros for encoding peripheral interrupt information for the microchip,xec-ecia compatible Embedded Controller Interrupt Aggregator (ECIA). MCHP_XEC_ECIA() packs the GIRQ number, the source bit position within that GIRQ and the aggregated/direct NVIC inputs into a single 32-bit value; MCHP_XEC_ECIA_GIRQ_ENC() encodes the GIRQ and bit position only. The matching MCHP_XEC_ECIA_* accessors extract each field.
| #define MCHP_XEC_ECIA | ( | g, | |
| gb, | |||
| na, | |||
| nd ) |
#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
Encode peripheral interrupt information into a 32-bit value.
Bits [4:0] hold the GIRQ number (in [8, 26]); bits [12:8] hold the peripheral source bit position (in [0, 31]) within the GIRQ; bits [23:16] hold the aggregated GIRQ NVIC number; bits [31:24] hold the direct NVIC number (for sources without a direct connection, set nd equal to na).
na and nd.| g | GIRQ number, in the range [8, 26]. |
| gb | Peripheral source bit position within the GIRQ, in the range [0, 31]. |
| na | Aggregated GIRQ NVIC number. |
| nd | Direct NVIC number. |
| #define MCHP_XEC_ECIA_GIRQ | ( | e | ) |
#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
Extract the GIRQ number from an encoded MCHP_XEC_ECIA() value.
| #define MCHP_XEC_ECIA_GIRQ_ENC | ( | g, | |
| b ) |
#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
Encode a peripheral's GIRQ and GIRQ bit position only.
| g | GIRQ number, in the range [8, 26]. |
| b | Source bit position within the GIRQ, in the range [0, 31]. |
| #define MCHP_XEC_ECIA_GIRQ_POS | ( | e | ) |
#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
Extract the source bit position from an encoded MCHP_XEC_ECIA() value.
| #define MCHP_XEC_ECIA_NVIC_AGGR | ( | e | ) |
#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
Extract the aggregated GIRQ NVIC number from an encoded MCHP_XEC_ECIA() value.
| #define MCHP_XEC_ECIA_NVIC_DIRECT | ( | e | ) |
#include <zephyr/dt-bindings/interrupt-controller/mchp-xec-ecia.h>
Extract the direct NVIC number from an encoded MCHP_XEC_ECIA() value.