extern const struct pbl_intc sym##_intc; \
PBL_DEVICE_STATE_DEFINE(sym); \
PBL_INTC_STATE_DEFINE(sym##_intc, _num_pins); \
.port =
PBL_GPIO_PORT_INIT(sym, _name, pbl_gpio_nrf5_init,
nullptr, &pbl_gpio_nrf5_port_ops, \
_num_pins, &sym##_intc), \
.base = (_base), \
.index = PBL_GPIO_NRF5__INDEX(_base), \
.gpiote = (_gpiote), \
}; \
PBL_DEVICE_INSTANCE(sym##_intc,
struct pbl_gpio_nrf5_intc,
struct pbl_intc, intc) { \
.intc =
PBL_INTC_INIT(sym##_intc, _name
"_intc",
nullptr, &sym##_inst.port.dev, \
&pbl_gpio_nrf5_intc_ops), \
.port = &sym##_inst, \
}
nRF5 GPIO port.
Definition nrf5.h:23
A GPIO controller.
Definition gpio.h:101
#define PBL_GPIO_PORT_INIT(sym, _name, _init, _parent, _ops, _num_pins, _intc)
Initializer for a struct pbl_gpio_port.
Definition gpio.h:123
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 an nRF5 GPIO port and its interrupt controller, sym_intc.