__VA_OPT__(
extern const struct pbl_intc sym##_intc;) \
static struct pbl_gpio_nrf54l_state sym##_nrf54l_state; \
.port = \
PBL_GPIO_PORT_INIT(sym, _name, pbl_gpio_nrf54l_init, nullptr, &pbl_gpio_nrf54l_port_ops, \
_num_pins, PBL_GPIO_NRF54L__FIRST(__VA_OPT__(&sym##_intc, ) nullptr)), \
.state = &sym##_nrf54l_state, \
.base = (_base), \
.index = (_index), \
__VA_OPT__(.gpiote = PBL_GPIO_NRF54L__GPIOTE(__VA_ARGS__), \
.irq = PBL_GPIO_NRF54L__IRQ(__VA_ARGS__), \
.num_channels = PBL_GPIO_NRF54L__NCH(__VA_ARGS__), ) \
}; \
PBL_DEVICE_INSTANCE(sym##_intc,
struct pbl_gpio_nrf54l_intc,
struct pbl_intc, intc){ \
.intc =
PBL_INTC_INIT(sym##_intc, _name
"_intc",
nullptr, &sym##_inst.port.dev, \
&pbl_gpio_nrf54l_intc_ops), \
.port = &sym##_inst, \
}; \
PBL_IRQ_CONNECT_NUM(PBL_GPIO_NRF54L__IRQ(__VA_ARGS__), CONFIG_GPIO_NRF54L_IRQ_PRIO, \
pbl_gpio_nrf54l_irq_handler, &sym##_inst, 0))
#define PBL_DEVICE_STATE_DEFINE(sym)
Define the runtime state of device instance sym.
Definition device.h:132
nRF54L GPIO port.
Definition nrf54l.h:36
A GPIO controller.
Definition gpio.h:101
An interrupt controller.
Definition intc.h:89
#define PBL_INTC_INIT(sym, _name, _init, _parent, _ops)
Initializer for the struct pbl_intc of controller sym.
Definition intc.h:123
#define PBL_INTC_STATE_DEFINE(sym, _num_irqs)
Define the class state of interrupt controller sym, for the driver's define macro.
Definition intc.h:108
Define an nRF54L GPIO port, and its interrupt controller, sym_intc, with a GPIOTE.