Lines Matching refs:_num
189 #define MAX32_W1_INIT(_num) \ argument
190 PINCTRL_DT_INST_DEFINE(_num); \
191 static const struct max32_w1_config max32_w1_config_##_num = { \
192 .w1_config.slave_count = W1_INST_SLAVE_COUNT(_num), \
193 .regs = (mxc_owm_regs_t *)DT_INST_REG_ADDR(_num), \
194 .pctrl = PINCTRL_DT_INST_DEV_CONFIG_GET(_num), \
195 .clock = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(_num)), \
196 .perclk.bus = DT_INST_CLOCKS_CELL(_num, offset), \
197 .perclk.bit = DT_INST_CLOCKS_CELL(_num, bit), \
198 .internal_pullup = DT_INST_PROP(_num, internal_pullup), \
199 .external_pullup = DT_INST_PROP_OR(_num, external_pullup, 0), \
200 .long_line_mode = DT_INST_PROP(_num, long_line_mode), \
202 static struct max32_w1_data max32_owm_data##_num; \
203 DEVICE_DT_INST_DEFINE(_num, w1_max32_init, NULL, &max32_owm_data##_num, \
204 &max32_w1_config_##_num, POST_KERNEL, CONFIG_W1_INIT_PRIORITY, \