Lines Matching refs:_num
936 #define DEFINE_I2C_MAX32(_num) \ argument
937 PINCTRL_DT_INST_DEFINE(_num); \
938 I2C_MAX32_IRQ_CONFIG_FUNC(_num) \
939 static const struct max32_i2c_config max32_i2c_dev_cfg_##_num = { \
940 .regs = (mxc_i2c_regs_t *)DT_INST_REG_ADDR(_num), \
941 .pctrl = PINCTRL_DT_INST_DEV_CONFIG_GET(_num), \
942 .clock = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(_num)), \
943 .perclk.bus = DT_INST_CLOCKS_CELL(_num, offset), \
944 .perclk.bit = DT_INST_CLOCKS_CELL(_num, bit), \
945 .bitrate = DT_INST_PROP(_num, clock_frequency), \
946 I2C_MAX32_CONFIG_IRQ_FUNC(_num) MAX32_I2C_TX_DMA_INIT(_num) \
947 MAX32_I2C_RX_DMA_INIT(_num)}; \
948 static struct max32_i2c_data max32_i2c_data_##_num; \
949 I2C_DEVICE_DT_INST_DEFINE(_num, i2c_max32_init, NULL, &max32_i2c_data_##_num, \
950 &max32_i2c_dev_cfg_##_num, PRE_KERNEL_2, \