Home
last modified time | relevance | path

Searched refs:int_gpio (Results 1 – 25 of 114) sorted by relevance

12345

/Zephyr-Core-3.7.0/drivers/sensor/honeywell/hmc5883l/
Dhmc5883l_trigger.c27 if (!config->int_gpio.port) { in hmc5883l_trigger_set()
33 gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_DISABLE); in hmc5883l_trigger_set()
42 gpio_pin_interrupt_configure_dt(&config->int_gpio, in hmc5883l_trigger_set()
57 gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_DISABLE); in hmc5883l_gpio_callback()
76 gpio_pin_interrupt_configure_dt(&config->int_gpio, in hmc5883l_thread_cb()
110 if (!gpio_is_ready_dt(&config->int_gpio)) { in hmc5883l_init_interrupt()
115 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in hmc5883l_init_interrupt()
118 BIT(config->int_gpio.pin)); in hmc5883l_init_interrupt()
120 if (gpio_add_callback(config->int_gpio.port, &drv_data->gpio_cb) < 0) { in hmc5883l_init_interrupt()
140 gpio_pin_interrupt_configure_dt(&config->int_gpio, in hmc5883l_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/tdk/mpu6050/
Dmpu6050_trigger.c24 if (!cfg->int_gpio.port) { in mpu6050_trigger_set()
32 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in mpu6050_trigger_set()
41 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, in mpu6050_trigger_set()
56 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in mpu6050_gpio_callback()
75 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, in mpu6050_thread_cb()
109 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in mpu6050_init_interrupt()
116 gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in mpu6050_init_interrupt()
120 BIT(cfg->int_gpio.pin)); in mpu6050_init_interrupt()
122 if (gpio_add_callback(cfg->int_gpio.port, &drv_data->gpio_cb) < 0) { in mpu6050_init_interrupt()
146 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, in mpu6050_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/adi/adt7420/
Dadt7420_trigger.c27 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, flags); in setup_int()
62 int pv = gpio_pin_get_dt(&cfg->int_gpio); in process_int()
109 if (!cfg->int_gpio.port) { in adt7420_trigger_set()
127 int pv = gpio_pin_get_dt(&cfg->int_gpio); in adt7420_trigger_set()
143 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in adt7420_init_interrupt()
145 cfg->int_gpio.port->name); in adt7420_init_interrupt()
151 BIT(cfg->int_gpio.pin)); in adt7420_init_interrupt()
153 rc = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT | cfg->int_gpio.dt_flags); in adt7420_init_interrupt()
158 rc = gpio_add_callback(cfg->int_gpio.port, &drv_data->gpio_cb); in adt7420_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/adi/adt7310/
Dadt7310_trigger.c65 if (!cfg->int_gpio.port) { in adt7310_trigger_set()
76 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in adt7310_trigger_set()
86 ret = gpio_pin_interrupt_configure_dt(&cfg->int_gpio, flags); in adt7310_trigger_set()
92 value = gpio_pin_get_dt(&cfg->int_gpio); in adt7310_trigger_set()
111 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in adt7310_init_interrupt()
112 LOG_ERR("%s: device %s is not ready", dev->name, cfg->int_gpio.port->name); in adt7310_init_interrupt()
116 gpio_init_callback(&drv_data->gpio_cb, adt7310_gpio_callback, BIT(cfg->int_gpio.pin)); in adt7310_init_interrupt()
118 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT | GPIO_ACTIVE_LOW); in adt7310_init_interrupt()
123 ret = gpio_add_callback(cfg->int_gpio.port, &drv_data->gpio_cb); in adt7310_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/st/iis2dh/
Diis2dh_trigger.c51 if (!cfg->int_gpio.port) { in iis2dh_trigger_set()
91 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in iis2dh_handle_interrupt()
101 if ((pins & BIT(cfg->int_gpio.pin)) == 0U) { in iis2dh_gpio_callback()
105 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in iis2dh_gpio_callback()
145 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in iis2dh_init_interrupt()
146 LOG_ERR("%s: device %s is not ready", dev->name, cfg->int_gpio.port->name); in iis2dh_init_interrupt()
164 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in iis2dh_init_interrupt()
172 BIT(cfg->int_gpio.pin)); in iis2dh_init_interrupt()
174 if (gpio_add_callback(cfg->int_gpio.port, &iis2dh->gpio_cb) < 0) { in iis2dh_init_interrupt()
184 return gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in iis2dh_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/wsen/wsen_itds/
Ditds_trigger.c49 if (!cfg->int_gpio.port) { in itds_trigger_set()
106 if (!cfg->int_gpio.port) { in itds_trigger_mode_init()
110 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in itds_trigger_mode_init()
112 cfg->int_gpio.port->name); in itds_trigger_mode_init()
119 gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in itds_trigger_mode_init()
122 BIT(cfg->int_gpio.pin)); in itds_trigger_mode_init()
124 gpio_add_callback(cfg->int_gpio.port, &ddata->gpio_cb); in itds_trigger_mode_init()
125 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in itds_trigger_mode_init()
/Zephyr-Core-3.7.0/drivers/sensor/st/iis3dhhc/
Diis3dhhc_trigger.c48 if (!config->int_gpio.port) { in iis3dhhc_trigger_set()
80 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in iis3dhhc_handle_interrupt()
92 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in iis3dhhc_gpio_callback()
132 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in iis3dhhc_init_interrupt()
133 LOG_ERR("%s: device %s is not ready", dev->name, cfg->int_gpio.port->name); in iis3dhhc_init_interrupt()
151 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in iis3dhhc_init_interrupt()
157 gpio_init_callback(&iis3dhhc->gpio_cb, iis3dhhc_gpio_callback, BIT(cfg->int_gpio.pin)); in iis3dhhc_init_interrupt()
159 if (gpio_add_callback(cfg->int_gpio.port, &iis3dhhc->gpio_cb) < 0) { in iis3dhhc_init_interrupt()
169 return gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in iis3dhhc_init_interrupt()
/Zephyr-Core-3.7.0/drivers/input/
Dinput_chsc6x.c17 const struct gpio_dt_spec int_gpio; member
101 if (!gpio_is_ready_dt(&config->int_gpio)) { in chsc6x_init()
102 LOG_ERR("GPIO port %s not ready", config->int_gpio.port->name); in chsc6x_init()
106 ret = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in chsc6x_init()
112 ret = gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in chsc6x_init()
118 gpio_init_callback(&data->int_gpio_cb, chsc6x_isr_handler, BIT(config->int_gpio.pin)); in chsc6x_init()
120 ret = gpio_add_callback(config->int_gpio.port, &data->int_gpio_cb); in chsc6x_init()
132 .int_gpio = GPIO_DT_SPEC_INST_GET(index, irq_gpios), \
Dinput_cap1203.c29 struct gpio_dt_spec int_gpio; member
141 if (config->int_gpio.port != NULL) { in cap1203_init()
142 if (!gpio_is_ready_dt(&config->int_gpio)) { in cap1203_init()
147 r = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in cap1203_init()
153 r = gpio_pin_interrupt_configure_dt(&config->int_gpio, in cap1203_init()
161 BIT(config->int_gpio.pin)); in cap1203_init()
163 r = gpio_add_callback(config->int_gpio.port, &data->int_gpio_cb); in cap1203_init()
204 .int_gpio = GPIO_DT_SPEC_INST_GET_OR(index, int_gpios, {0}), \
/Zephyr-Core-3.7.0/drivers/sensor/vishay/vcnl4040/
Dvcnl4040_trigger.c16 gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_DISABLE); in vcnl4040_handle_cb()
33 if ((pin_mask & BIT(config->int_gpio.pin)) == 0U) { in vcnl4040_gpio_callback()
85 gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in vcnl4040_handle_int()
122 if (config->int_gpio.port == NULL) { in vcnl4040_attr_set()
190 if (config->int_gpio.port == NULL) { in vcnl4040_trigger_set()
258 if (config->int_gpio.port == NULL) { in vcnl4040_trigger_init()
264 if (!gpio_is_ready_dt(&config->int_gpio)) { in vcnl4040_trigger_init()
266 config->int_gpio.port->name); in vcnl4040_trigger_init()
283 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in vcnl4040_trigger_init()
286 BIT(config->int_gpio.pin)); in vcnl4040_trigger_init()
[all …]
/Zephyr-Core-3.7.0/drivers/sensor/ams/tsl2591/
Dtsl2591_trigger.c16 gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in tsl2591_setup_int()
88 if (!config->int_gpio.port) { in tsl2591_trigger_set()
120 if (!gpio_is_ready_dt(&config->int_gpio)) { in tsl2591_initialize_int()
121 LOG_ERR("%s: gpio controller %s not ready", dev->name, config->int_gpio.port->name); in tsl2591_initialize_int()
125 ret = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT | config->int_gpio.dt_flags); in tsl2591_initialize_int()
131 gpio_init_callback(&data->gpio_cb, tsl2591_gpio_callback, BIT(config->int_gpio.pin)); in tsl2591_initialize_int()
133 ret = gpio_add_callback(config->int_gpio.port, &data->gpio_cb); in tsl2591_initialize_int()
/Zephyr-Core-3.7.0/drivers/sensor/st/stts751/
Dstts751_trigger.c43 if (!config->int_gpio.port) { in stts751_trigger_set()
77 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in stts751_handle_interrupt()
89 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in stts751_gpio_callback()
129 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in stts751_init_interrupt()
146 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in stts751_init_interrupt()
152 gpio_init_callback(&stts751->gpio_cb, stts751_gpio_callback, BIT(cfg->int_gpio.pin)); in stts751_init_interrupt()
154 if (gpio_add_callback(cfg->int_gpio.port, &stts751->gpio_cb) < 0) { in stts751_init_interrupt()
169 return gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in stts751_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/st/stts22h/
Dstts22h_trigger.c32 if (!config->int_gpio.port) { in stts22h_trigger_set()
66 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in stts22h_handle_interrupt()
78 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_DISABLE); in stts22h_gpio_callback()
119 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in stts22h_init_interrupt()
137 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in stts22h_init_interrupt()
143 gpio_init_callback(&stts22h->gpio_cb, stts22h_gpio_callback, BIT(cfg->int_gpio.pin)); in stts22h_init_interrupt()
145 if (gpio_add_callback(cfg->int_gpio.port, &stts22h->gpio_cb) < 0) { in stts22h_init_interrupt()
161 return gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in stts22h_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/ens160/
Dens160_trigger.c20 (void)gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in ens160_setup_int()
89 if (!config->int_gpio.port) { in ens160_trigger_set()
119 if (!gpio_is_ready_dt(&config->int_gpio)) { in ens160_init_interrupt()
120 LOG_ERR("%s: device %s is not ready", dev->name, config->int_gpio.port->name); in ens160_init_interrupt()
124 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in ens160_init_interrupt()
126 gpio_init_callback(&data->gpio_cb, ens160_gpio_callback, BIT(config->int_gpio.pin)); in ens160_init_interrupt()
128 ret = gpio_add_callback(config->int_gpio.port, &data->gpio_cb); in ens160_init_interrupt()
134 ret = gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ens160_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/ams/tsl2540/
Dtsl2540_trigger.c19 gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in tsl2540_setup_int()
76 int pv = gpio_pin_get_dt(&config->int_gpio); in tsl2540_process_int()
150 int pv = gpio_pin_get_dt(&config->int_gpio); in tsl2540_trigger_set()
169 if (config->int_gpio.port == NULL) { in tsl2540_trigger_init()
175 if (!gpio_is_ready_dt(&config->int_gpio)) { in tsl2540_trigger_init()
176 LOG_ERR("%s: gpio controller %s not ready", dev->name, config->int_gpio.port->name); in tsl2540_trigger_init()
180 rc = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in tsl2540_trigger_init()
185 gpio_init_callback(&data->gpio_cb, tsl2540_gpio_callback, BIT(config->int_gpio.pin)); in tsl2540_trigger_init()
187 if (gpio_add_callback(config->int_gpio.port, &data->gpio_cb) < 0) { in tsl2540_trigger_init()
/Zephyr-Core-3.7.0/drivers/sensor/nxp/fxas21002/
Dfxas21002_trigger.c23 if ((pin_mask & BIT(config->int_gpio.pin)) == 0U) { in fxas21002_gpio_callback()
27 gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_DISABLE); in fxas21002_gpio_callback()
67 gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in fxas21002_handle_int()
106 if (!config->int_gpio.port) { in fxas21002_trigger_set()
200 if (!gpio_is_ready_dt(&config->int_gpio)) { in fxas21002_trigger_init()
205 ret = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in fxas21002_trigger_init()
211 BIT(config->int_gpio.pin)); in fxas21002_trigger_init()
213 ret = gpio_add_callback(config->int_gpio.port, &data->gpio_cb); in fxas21002_trigger_init()
218 ret = gpio_pin_interrupt_configure_dt(&config->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in fxas21002_trigger_init()
/Zephyr-Core-3.7.0/drivers/sensor/amg88xx/
Damg88xx_trigger.c28 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, flags); in amg88xx_setup_int()
42 if (!config->int_gpio.port) { in amg88xx_attr_set()
146 if (!config->int_gpio.port) { in amg88xx_trigger_set()
180 if (!gpio_is_ready_dt(&config->int_gpio)) { in amg88xx_init_interrupt()
182 config->int_gpio.port->name); in amg88xx_init_interrupt()
186 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT | config->int_gpio.dt_flags); in amg88xx_init_interrupt()
190 BIT(config->int_gpio.pin)); in amg88xx_init_interrupt()
192 if (gpio_add_callback(config->int_gpio.port, &drv_data->gpio_cb) < 0) { in amg88xx_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/st/lsm9ds0_gyro/
Dlsm9ds0_gyro_trigger.c28 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, in setup_drdy()
42 if (!config->int_gpio.port) { in lsm9ds0_gyro_trigger_set()
116 if (!gpio_is_ready_dt(&config->int_gpio)) { in lsm9ds0_gyro_init_interrupt()
121 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in lsm9ds0_gyro_init_interrupt()
125 BIT(config->int_gpio.pin)); in lsm9ds0_gyro_init_interrupt()
127 if (gpio_add_callback(config->int_gpio.port, &data->gpio_cb) < 0) { in lsm9ds0_gyro_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/st/lsm6dsl/
Dlsm6dsl_trigger.c28 gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in setup_irq()
54 if (!config->int_gpio.port) { in lsm6dsl_trigger_set()
69 if (gpio_pin_get_dt(&config->int_gpio) > 0) { in lsm6dsl_trigger_set()
130 if (!gpio_is_ready_dt(&config->int_gpio)) { in lsm6dsl_init_interrupt()
135 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in lsm6dsl_init_interrupt()
138 lsm6dsl_gpio_callback, BIT(config->int_gpio.pin)); in lsm6dsl_init_interrupt()
140 if (gpio_add_callback(config->int_gpio.port, &drv_data->gpio_cb) < 0) { in lsm6dsl_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/microchip/mcp9808/
Dmcp9808_trigger.c27 if (!cfg->int_gpio.port) { in mcp9808_attr_set()
60 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, flags); in setup_int()
97 if (!cfg->int_gpio.port) { in mcp9808_trigger_set()
109 rv = gpio_pin_get_dt(&cfg->int_gpio); in mcp9808_trigger_set()
184 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in mcp9808_setup_interrupt()
190 rc = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in mcp9808_setup_interrupt()
194 gpio_init_callback(&data->alert_cb, alert_cb, BIT(cfg->int_gpio.pin)); in mcp9808_setup_interrupt()
196 rc = gpio_add_callback(cfg->int_gpio.port, &data->alert_cb); in mcp9808_setup_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/honeywell/sm351lt/
Dsm351lt.c34 ret = gpio_pin_interrupt_configure_dt(&config->int_gpio, in sm351lt_trigger_set()
43 ret = gpio_add_callback(config->int_gpio.port, in sm351lt_trigger_set()
46 ret = gpio_remove_callback(config->int_gpio.port, in sm351lt_trigger_set()
114 data->sample_status = gpio_pin_get_dt(&config->int_gpio); in sm351lt_sample_fetch()
195 if (!gpio_is_ready_dt(&config->int_gpio)) { in sm351lt_init()
200 ret = gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in sm351lt_init()
230 ret = gpio_pin_interrupt_configure_dt(&config->int_gpio, in sm351lt_init()
239 BIT(config->int_gpio.pin)); in sm351lt_init()
249 .int_gpio = GPIO_DT_SPEC_INST_GET(inst, gpios), \
/Zephyr-Core-3.7.0/drivers/sensor/sx9500/
Dsx9500_trigger.c34 if (!cfg->int_gpio.port) { in sx9500_trigger_set()
152 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in sx9500_setup_interrupt()
154 cfg->int_gpio.port->name); in sx9500_setup_interrupt()
158 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in sx9500_setup_interrupt()
163 gpio_init_callback(&data->gpio_cb, sx9500_gpio_cb, BIT(cfg->int_gpio.pin)); in sx9500_setup_interrupt()
165 ret = gpio_add_callback(cfg->int_gpio.port, &data->gpio_cb); in sx9500_setup_interrupt()
170 ret = gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_TO_ACTIVE); in sx9500_setup_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/ti/tmp007/
Dtmp007_trigger.c27 gpio_pin_interrupt_configure_dt(&cfg->int_gpio, in setup_int()
42 if (!cfg->int_gpio.port) { in tmp007_attr_set()
139 if (!cfg->int_gpio.port) { in tmp007_trigger_set()
171 if (!gpio_is_ready_dt(&cfg->int_gpio)) { in tmp007_init_interrupt()
173 cfg->int_gpio.port->name); in tmp007_init_interrupt()
177 gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INT_LEVEL_ACTIVE); in tmp007_init_interrupt()
181 BIT(cfg->int_gpio.pin)); in tmp007_init_interrupt()
183 if (gpio_add_callback(cfg->int_gpio.port, &drv_data->gpio_cb) < 0) { in tmp007_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/isl29035/
Disl29035_trigger.c29 gpio_pin_interrupt_configure_dt(&config->int_gpio, flags); in setup_int()
65 if (!config->int_gpio.port) { in isl29035_attr_set()
156 if (!config->int_gpio.port) { in isl29035_trigger_set()
168 if (gpio_pin_get_dt(&config->int_gpio) > 0) { in isl29035_trigger_set()
189 if (!gpio_is_ready_dt(&config->int_gpio)) { in isl29035_init_interrupt()
194 gpio_pin_configure_dt(&config->int_gpio, GPIO_INPUT); in isl29035_init_interrupt()
198 BIT(config->int_gpio.pin)); in isl29035_init_interrupt()
200 if (gpio_add_callback(config->int_gpio.port, &drv_data->gpio_cb) < 0) { in isl29035_init_interrupt()
/Zephyr-Core-3.7.0/drivers/sensor/ti/tmag5170/
Dtmag5170_trigger.c107 if (!device_is_ready(cfg->int_gpio.port)) { in tmag5170_trigger_init()
108 LOG_ERR("%s: device %s is not ready", dev->name, cfg->int_gpio.port->name); in tmag5170_trigger_init()
130 ret = gpio_pin_configure_dt(&cfg->int_gpio, GPIO_INPUT); in tmag5170_trigger_init()
136 gpio_init_callback(&data->gpio_cb, tmag5170_gpio_callback, BIT(cfg->int_gpio.pin)); in tmag5170_trigger_init()
138 ret = gpio_add_callback(cfg->int_gpio.port, &data->gpio_cb); in tmag5170_trigger_init()
143 ret = gpio_pin_interrupt_configure_dt(&cfg->int_gpio, GPIO_INT_EDGE_FALLING); in tmag5170_trigger_init()

12345