Lines Matching refs:_num
245 #define MAX32_GPIO_INIT(_num) \ argument
246 static void gpio_max32_irq_init_##_num(void) \
248 IRQ_CONNECT(DT_INST_IRQN(_num), DT_INST_IRQ(_num, priority), gpio_max32_isr, \
249 DEVICE_DT_INST_GET(_num), 0); \
250 irq_enable(DT_INST_IRQN(_num)); \
252 static struct max32_gpio_data max32_gpio_data_##_num; \
253 static const struct max32_gpio_config max32_gpio_config_##_num = { \
256 .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(_num), \
258 .regs = (mxc_gpio_regs_t *)DT_INST_REG_ADDR(_num), \
259 .irq_func = &gpio_max32_irq_init_##_num, \
260 .clock = DEVICE_DT_GET_OR_NULL(DT_INST_CLOCKS_CTLR(_num)), \
261 .perclk.bus = DT_INST_PHA_BY_IDX_OR(_num, clocks, 0, offset, 0), \
262 .perclk.bit = DT_INST_PHA_BY_IDX_OR(_num, clocks, 1, bit, 0), \
264 DEVICE_DT_INST_DEFINE(_num, gpio_max32_init, NULL, &max32_gpio_data_##_num, \
265 &max32_gpio_config_##_num, PRE_KERNEL_1, CONFIG_GPIO_INIT_PRIORITY, \