Lines Matching refs:_num
239 #define COUNTER_RTC_MAX32_INIT(_num) \ argument
240 static struct max32_rtc_data rtc_max32_data_##_num; \
241 static void max32_rtc_irq_init_##_num(void) \
243 IRQ_CONNECT(DT_INST_IRQN(_num), DT_INST_IRQ(_num, priority), rtc_max32_isr, \
244 DEVICE_DT_INST_GET(_num), 0); \
245 irq_enable(DT_INST_IRQN(_num)); \
246 if (DT_INST_PROP(_num, wakeup_source)) { \
250 static const struct max32_rtc_config rtc_max32_config_##_num = { \
258 .regs = (mxc_rtc_regs_t *)DT_INST_REG_ADDR(_num), \
259 .irq_func = max32_rtc_irq_init_##_num, \
262 DEVICE_DT_INST_DEFINE(_num, &rtc_max32_init, NULL, &rtc_max32_data_##_num, \
263 &rtc_max32_config_##_num, PRE_KERNEL_1, \