Lines Matching refs:index

495 #define PWM_RA_IRQ_CONFIG_INIT(index)                                                              \  argument
498 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(index, gtioca, irq), \
499 DT_INST_IRQ_BY_NAME(index, gtioca, priority), \
501 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(index, overflow, irq), \
502 DT_INST_IRQ_BY_NAME(index, overflow, priority), \
507 #define PWM_RA_IRQ_CONFIG_INIT(index) argument
510 #define PWM_RA8_INIT(index) \ argument
511 PINCTRL_DT_INST_DEFINE(index); \
512 static const gpt_extended_cfg_t g_timer1_extend_##index = { \
530 .capture_a_ipl = DT_INST_IRQ_BY_NAME(index, gtioca, priority), \
532 .capture_a_irq = DT_INST_IRQ_BY_NAME(index, gtioca, irq), \
539 static struct pwm_renesas_ra_data pwm_renesas_ra_data_##index = { \
543 .source_div = DT_INST_PROP(index, divider), \
544 .channel = DT_INST_PROP(index, channel), \
545 .cycle_end_ipl = DT_INST_IRQ_BY_NAME(index, overflow, priority), \
546 .cycle_end_irq = DT_INST_IRQ_BY_NAME(index, overflow, irq), \
548 .extend_cfg = g_timer1_extend_##index, \
549 .capture_a_event = ELC_EVENT_GPT_CAPTURE_COMPARE_A(DT_INST_PROP(index, channel)), \
550 .overflow_event = ELC_EVENT_GPT_COUNTER_OVERFLOW(DT_INST_PROP(index, channel)), \
552 static const struct pwm_renesas_ra_config pwm_renesas_ra_config_##index = { \
553 .pincfg = PINCTRL_DT_INST_DEV_CONFIG_GET(index), \
554 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(index)), \
556 .mstp = (uint32_t)DT_INST_CLOCKS_CELL_BY_IDX(index, 0, mstp), \
557 .stop_bit = DT_INST_CLOCKS_CELL_BY_IDX(index, 0, stop_bit), \
559 static int pwm_renesas_ra_init_##index(const struct device *dev) \
561 PWM_RA_IRQ_CONFIG_INIT(index); \
568 DEVICE_DT_INST_DEFINE(index, pwm_renesas_ra_init_##index, NULL, \
569 &pwm_renesas_ra_data_##index, &pwm_renesas_ra_config_##index, \