Lines Matching refs:_num
252 #define MAX32_WDT_INIT(_num) \ argument
253 static void wdt_max32_irq_init_##_num(void) \
255 IRQ_CONNECT(DT_INST_IRQN(_num), DT_INST_IRQ(_num, priority), wdt_max32_isr, \
256 DEVICE_DT_INST_GET(_num), 0); \
257 irq_enable(DT_INST_IRQN(_num)); \
259 static struct max32_wdt_data max32_wdt_data##_num; \
260 static const struct max32_wdt_config max32_wdt_config##_num = { \
261 .regs = (mxc_wdt_regs_t *)DT_INST_REG_ADDR(_num), \
262 .clock = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(_num)), \
264 DT_INST_PROP_OR(_num, clock_source, ADI_MAX32_PRPH_CLK_SRC_PCLK), \
265 .perclk.bus = DT_INST_CLOCKS_CELL(_num, offset), \
266 .perclk.bit = DT_INST_CLOCKS_CELL(_num, bit), \
267 .irq_func = &wdt_max32_irq_init_##_num, \
269 DEVICE_DT_INST_DEFINE(_num, wdt_max32_init, NULL, &max32_wdt_data##_num, \
270 &max32_wdt_config##_num, POST_KERNEL, \