Lines Matching refs:_num
546 #define ADC_EMUL_INIT(_num) \ argument
547 static struct adc_driver_api adc_emul_api_##_num = { \
550 .ref_internal = DT_INST_PROP(_num, ref_internal_mv), \
556 adc_emul_ch_cfg_##_num[DT_INST_PROP(_num, nchannels)]; \
558 static const struct adc_emul_config adc_emul_config_##_num = { \
559 .num_channels = DT_INST_PROP(_num, nchannels), \
562 static struct adc_emul_data adc_emul_data_##_num = { \
563 ADC_CONTEXT_INIT_TIMER(adc_emul_data_##_num, ctx), \
564 ADC_CONTEXT_INIT_LOCK(adc_emul_data_##_num, ctx), \
565 ADC_CONTEXT_INIT_SYNC(adc_emul_data_##_num, ctx), \
566 .chan_cfg = adc_emul_ch_cfg_##_num, \
567 .ref_vdd = DT_INST_PROP(_num, ref_vdd_mv), \
568 .ref_ext0 = DT_INST_PROP(_num, ref_external0_mv), \
569 .ref_ext1 = DT_INST_PROP(_num, ref_external1_mv), \
570 .ref_int = DT_INST_PROP(_num, ref_internal_mv), \
573 DEVICE_DT_INST_DEFINE(_num, adc_emul_init, NULL, \
574 &adc_emul_data_##_num, \
575 &adc_emul_config_##_num, POST_KERNEL, \
577 &adc_emul_api_##_num);