/Zephyr-Core-3.5.0/drivers/i2c/ |
D | i2c_sbcon.c | 111 #define DEFINE_I2C_SBCON(_num) \ argument 113 static struct i2c_sbcon_context i2c_sbcon_dev_data_##_num; \ 115 static const struct i2c_sbcon_config i2c_sbcon_dev_cfg_##_num = { \ 116 .sbcon = (void *)DT_INST_REG_ADDR(_num), \ 119 I2C_DEVICE_DT_INST_DEFINE(_num, \ 122 &i2c_sbcon_dev_data_##_num, \ 123 &i2c_sbcon_dev_cfg_##_num, \
|
D | i2c_gpio.c | 185 #define DEFINE_I2C_GPIO(_num) \ argument 187 static struct i2c_gpio_context i2c_gpio_dev_data_##_num; \ 189 static const struct i2c_gpio_config i2c_gpio_dev_cfg_##_num = { \ 190 .scl_gpio = GPIO_DT_SPEC_INST_GET(_num, scl_gpios), \ 191 .sda_gpio = GPIO_DT_SPEC_INST_GET(_num, sda_gpios), \ 192 .bitrate = DT_INST_PROP(_num, clock_frequency), \ 195 I2C_DEVICE_DT_INST_DEFINE(_num, \ 198 &i2c_gpio_dev_data_##_num, \ 199 &i2c_gpio_dev_cfg_##_num, \
|
/Zephyr-Core-3.5.0/drivers/eeprom/ |
D | eeprom_tmp116.c | 62 #define DEFINE_TMP116(_num) \ argument 63 static const struct eeprom_tmp116_config eeprom_tmp116_config##_num = { \ 64 .parent = DEVICE_DT_GET(DT_INST_BUS(_num)) \ 66 DEVICE_DT_INST_DEFINE(_num, eeprom_tmp116_init, NULL, \ 67 NULL, &eeprom_tmp116_config##_num, POST_KERNEL, \
|
/Zephyr-Core-3.5.0/drivers/adc/ |
D | adc_emul.c | 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), \ [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/bh1750/ |
D | bh1750.c | 211 #define DEFINE_BH1750(_num) \ argument 212 static struct bh1750_data bh1750_data_##_num; \ 213 static const struct bh1750_dev_config bh1750_config_##_num = { \ 214 .bus = I2C_DT_SPEC_INST_GET(_num), \ 215 .mtreg = DT_INST_PROP(_num, mtreg), \ 216 .resolution = DT_INST_PROP(_num, resolution) \ 218 SENSOR_DEVICE_DT_INST_DEFINE(_num, bh1750_init, NULL, \ 219 &bh1750_data_##_num, &bh1750_config_##_num, POST_KERNEL, \
|
/Zephyr-Core-3.5.0/drivers/sensor/tmag5170/ |
D | tmag5170.c | 552 #define DEFINE_TMAG5170(_num) \ argument 553 static struct tmag5170_data tmag5170_data_##_num; \ 554 static const struct tmag5170_dev_config tmag5170_config_##_num = { \ 555 .bus = SPI_DT_SPEC_INST_GET(_num, \ 560 .magnetic_channels = DT_INST_ENUM_IDX(_num, magnetic_channels), \ 561 .x_range = DT_INST_ENUM_IDX(_num, x_range), \ 562 .y_range = DT_INST_ENUM_IDX(_num, y_range), \ 563 .z_range = DT_INST_ENUM_IDX(_num, z_range), \ 564 .operating_mode = DT_INST_PROP(_num, operating_mode), \ 565 .oversampling = DT_INST_ENUM_IDX(_num, oversampling), \ [all …]
|
/Zephyr-Core-3.5.0/drivers/gpio/ |
D | gpio_emul.c | 849 #define GPIO_EMUL_INT_CAPS(_num) (0 \ argument 850 + DT_INST_PROP(_num, rising_edge) \ 852 + DT_INST_PROP(_num, falling_edge) \ 854 + DT_INST_PROP(_num, high_level) \ 856 + DT_INST_PROP(_num, low_level) \ 860 #define DEFINE_GPIO_EMUL(_num) \ argument 863 gpio_emul_flags_##_num[DT_INST_PROP(_num, ngpios)]; \ 865 static const struct gpio_emul_config gpio_emul_config_##_num = {\ 868 GPIO_PORT_PIN_MASK_FROM_DT_INST(_num), \ 870 .num_pins = DT_INST_PROP(_num, ngpios), \ [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/tmp116/ |
D | tmp116.c | 317 #define DEFINE_TMP116(_num) \ argument 318 static struct tmp116_data tmp116_data_##_num; \ 319 static const struct tmp116_dev_config tmp116_config_##_num = { \ 320 .bus = I2C_DT_SPEC_INST_GET(_num) \ 322 SENSOR_DEVICE_DT_INST_DEFINE(_num, tmp116_init, NULL, \ 323 &tmp116_data_##_num, &tmp116_config_##_num, POST_KERNEL, \
|