Lines Matching refs:_num
418 #define DEFINE_I2C_MAX32(_num) \ argument
419 PINCTRL_DT_INST_DEFINE(_num); \
420 I2C_MAX32_IRQ_CONFIG_FUNC(_num) \
421 static const struct max32_i2c_config max32_i2c_dev_cfg_##_num = { \
422 .regs = (mxc_i2c_regs_t *)DT_INST_REG_ADDR(_num), \
423 .pctrl = PINCTRL_DT_INST_DEV_CONFIG_GET(_num), \
424 .clock = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(_num)), \
425 .perclk.bus = DT_INST_CLOCKS_CELL(_num, offset), \
426 .perclk.bit = DT_INST_CLOCKS_CELL(_num, bit), \
427 .bitrate = DT_INST_PROP(_num, clock_frequency), \
428 I2C_MAX32_CONFIG_IRQ_FUNC(_num)}; \
432 static struct max32_i2c_data max32_i2c_data_##_num = { \
435 I2C_DEVICE_DT_INST_DEFINE(_num, i2c_max32_init, NULL, &max32_i2c_data_##_num, \
436 &max32_i2c_dev_cfg_##_num, PRE_KERNEL_2, \