Lines Matching refs:_num
126 #define PWM_MAX32_DEFINE(_num) \ argument
127 static struct max32_pwm_data max32_pwm_data_##_num; \
128 PINCTRL_DT_INST_DEFINE(_num); \
129 static const struct max32_pwm_config max32_pwm_config_##_num = { \
130 .regs = (mxc_tmr_regs_t *)DT_REG_ADDR(DT_INST_PARENT(_num)), \
131 .pctrl = PINCTRL_DT_INST_DEV_CONFIG_GET(_num), \
132 .clock = DEVICE_DT_GET(DT_CLOCKS_CTLR(DT_INST_PARENT(_num))), \
133 .perclk.bus = DT_CLOCKS_CELL(DT_INST_PARENT(_num), offset), \
134 .perclk.bit = DT_CLOCKS_CELL(DT_INST_PARENT(_num), bit), \
135 .perclk.clk_src = DT_PROP(DT_INST_PARENT(_num), clock_source), \
136 .prescaler = DT_PROP(DT_INST_PARENT(_num), prescaler), \
138 DEVICE_DT_INST_DEFINE(_num, &pwm_max32_init, NULL, &max32_pwm_data_##_num, \
139 &max32_pwm_config_##_num, POST_KERNEL, CONFIG_PWM_INIT_PRIORITY, \