Home
last modified time | relevance | path

Searched refs:irq_gpio (Results 1 – 22 of 22) sorted by relevance

/Zephyr-Core-3.7.0/drivers/sensor/st/lis3mdl/
Dlis3mdl_trigger.c29 if (!config->irq_gpio.port) { in lis3mdl_trigger_set()
42 gpio_pin_interrupt_configure_dt(&config->irq_gpio, GPIO_INT_DISABLE); in lis3mdl_trigger_set()
51 gpio_pin_interrupt_configure_dt(&config->irq_gpio, in lis3mdl_trigger_set()
66 gpio_pin_interrupt_configure_dt(&config->irq_gpio, GPIO_INT_DISABLE); in lis3mdl_gpio_callback()
85 gpio_pin_interrupt_configure_dt(&config->irq_gpio, in lis3mdl_thread_cb()
119 if (!gpio_is_ready_dt(&config->irq_gpio)) { in lis3mdl_init_interrupt()
124 gpio_pin_configure_dt(&config->irq_gpio, GPIO_INPUT); in lis3mdl_init_interrupt()
128 BIT(config->irq_gpio.pin)); in lis3mdl_init_interrupt()
130 if (gpio_add_callback(config->irq_gpio.port, &drv_data->gpio_cb) < 0) { in lis3mdl_init_interrupt()
155 gpio_pin_interrupt_configure_dt(&config->irq_gpio, in lis3mdl_init_interrupt()
Dlis3mdl.c154 if (config->irq_gpio.port) { in lis3mdl_init()
171 (.irq_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, irq_gpios, { 0 }),)) \
Dlis3mdl.h139 struct gpio_dt_spec irq_gpio; member
/Zephyr-Core-3.7.0/drivers/gpio/
Dgpio_rt1718s.c80 } while (gpio_pin_get_dt(&config->irq_gpio)); in rt1718s_alert_worker()
98 if (!gpio_is_ready_dt(&config->irq_gpio)) { in rt1718s_init()
99 LOG_ERR("%s device not ready", config->irq_gpio.port->name); in rt1718s_init()
106 gpio_pin_configure_dt(&config->irq_gpio, GPIO_INPUT); in rt1718s_init()
109 BIT(config->irq_gpio.pin)); in rt1718s_init()
111 ret = gpio_add_callback(config->irq_gpio.port, &data->gpio_cb); in rt1718s_init()
116 gpio_pin_interrupt_configure_dt(&config->irq_gpio, GPIO_INT_EDGE_TO_ACTIVE); in rt1718s_init()
128 (.irq_gpio = GPIO_DT_SPEC_INST_GET(inst, irq_gpios)), ())
Dgpio_nct38xx_alert.c31 const struct gpio_dt_spec irq_gpio; member
115 } while (gpio_pin_get_dt(&config->irq_gpio)); in nct38xx_alert_worker()
138 if (!gpio_is_ready_dt(&config->irq_gpio)) { in nct38xx_alert_init()
139 LOG_ERR("%s device not ready", config->irq_gpio.port->name); in nct38xx_alert_init()
143 gpio_pin_configure_dt(&config->irq_gpio, GPIO_INPUT); in nct38xx_alert_init()
145 gpio_init_callback(&data->gpio_cb, nct38xx_alert_callback, BIT(config->irq_gpio.pin)); in nct38xx_alert_init()
147 ret = gpio_add_callback(config->irq_gpio.port, &data->gpio_cb); in nct38xx_alert_init()
152 gpio_pin_interrupt_configure_dt(&config->irq_gpio, GPIO_INT_EDGE_TO_ACTIVE); in nct38xx_alert_init()
168 .irq_gpio = GPIO_DT_SPEC_INST_GET(inst, irq_gpios), \
Dgpio_rt1718s.h60 const struct gpio_dt_spec irq_gpio; member
/Zephyr-Core-3.7.0/drivers/misc/ft8xx/
Dft8xx_drv.c26 static const struct gpio_dt_spec irq_gpio = GPIO_DT_SPEC_INST_GET(0, irq_gpios); variable
66 if (!gpio_is_ready_dt(&irq_gpio)) { in ft8xx_drv_init()
67 LOG_ERR("GPIO device %s is not ready", irq_gpio.port->name); in ft8xx_drv_init()
71 ret = gpio_pin_configure_dt(&irq_gpio, GPIO_INPUT); in ft8xx_drv_init()
76 ret = gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE); in ft8xx_drv_init()
81 gpio_init_callback(&irq_cb_data, ft8xx_drv_irq_triggered, BIT(irq_gpio.pin)); in ft8xx_drv_init()
82 gpio_add_callback(irq_gpio.port, &irq_cb_data); in ft8xx_drv_init()
/Zephyr-Core-3.7.0/drivers/wifi/winc1500/
Dwifi_winc1500_nm_bsp.c19 .irq_gpio = GPIO_DT_SPEC_INST_GET(0, irq_gpios),
76 BIT(winc1500_config.irq_gpio.pin)); in nm_bsp_register_isr()
78 gpio_add_callback(winc1500_config.irq_gpio.port, &winc1500.gpio_cb); in nm_bsp_register_isr()
83 gpio_pin_interrupt_configure_dt(&winc1500_config.irq_gpio, in nm_bsp_interrupt_ctrl()
Dwifi_winc1500_nm_bsp_internal.h39 struct gpio_dt_spec irq_gpio; member
Dwifi_winc1500_nm_bus_wrapper.c97 if (!gpio_is_ready_dt(&winc1500_config.irq_gpio)) { in nm_bus_init()
100 gpio_pin_configure_dt(&winc1500_config.irq_gpio, GPIO_INPUT); in nm_bus_init()
/Zephyr-Core-3.7.0/drivers/sensor/ams/ccs811/
Dccs811_trigger.c25 if (!config->irq_gpio.port) { in ccs811_attr_set()
59 gpio_pin_interrupt_configure_dt(&config->irq_gpio, flags); in setup_irq()
133 if (!config->irq_gpio.port) { in ccs811_trigger_set()
168 if (gpio_pin_get_dt(&config->irq_gpio) > 0) { in ccs811_trigger_set()
186 gpio_pin_configure_dt(&config->irq_gpio, GPIO_INPUT); in ccs811_init_interrupt()
188 gpio_init_callback(&drv_data->gpio_cb, gpio_callback, BIT(config->irq_gpio.pin)); in ccs811_init_interrupt()
190 if (gpio_add_callback(config->irq_gpio.port, &drv_data->gpio_cb) < 0) { in ccs811_init_interrupt()
Dccs811.h79 struct gpio_dt_spec irq_gpio; member
Dccs811.c467 if (config->irq_gpio.port) { in ccs811_init()
468 if (!gpio_is_ready_dt(&config->irq_gpio)) { in ccs811_init()
561 if (config->irq_gpio.port) { in ccs811_init()
578 (.irq_gpio = GPIO_DT_SPEC_INST_GET_OR(inst, irq_gpios, { 0 }),)) \
/Zephyr-Core-3.7.0/drivers/usb_c/ppc/
Dnxp_nx20p3483.c33 const struct gpio_dt_spec irq_gpio; member
217 LOG_INF("NX20P alert: %d", gpio_pin_get(cfg->irq_gpio.port, cfg->irq_gpio.pin)); in nx20p3483_dump_regs()
378 ret = gpio_pin_configure(cfg->irq_gpio.port, cfg->irq_gpio.pin, GPIO_INPUT | GPIO_PULL_UP); in nx20p3483_dev_init()
383 ret = gpio_pin_interrupt_configure(cfg->irq_gpio.port, cfg->irq_gpio.pin, in nx20p3483_dev_init()
389 gpio_init_callback(&data->irq_cb, nx20p3483_irq_handler, BIT(cfg->irq_gpio.pin)); in nx20p3483_dev_init()
390 ret = gpio_add_callback(cfg->irq_gpio.port, &data->irq_cb); in nx20p3483_dev_init()
425 .bus = I2C_DT_SPEC_GET(node), .irq_gpio = GPIO_DT_SPEC_GET(node, irq_gpios), \
/Zephyr-Core-3.7.0/drivers/bluetooth/hci/
Dhci_spi_st.c75 static const struct gpio_dt_spec irq_gpio = GPIO_DT_SPEC_INST_GET(0, irq_gpios); variable
129 gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_DISABLE); in bluenrg_bt_reset()
131 err = gpio_pin_configure_dt(&irq_gpio, GPIO_OUTPUT_ACTIVE); in bluenrg_bt_reset()
140 gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE); in bluenrg_bt_reset()
142 err = gpio_pin_configure_dt(&irq_gpio, GPIO_INPUT); in bluenrg_bt_reset()
203 #define IS_IRQ_HIGH gpio_pin_get_dt(&irq_gpio)
277 gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE); in release_cs()
311 gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_DISABLE); in bt_spi_get_header()
654 err = gpio_pin_configure_dt(&irq_gpio, GPIO_INPUT); in bt_spi_open()
659 gpio_init_callback(&gpio_cb, bt_spi_isr, BIT(irq_gpio.pin)); in bt_spi_open()
[all …]
Dapollox_blue.c53 static const struct gpio_dt_spec irq_gpio = GPIO_DT_SPEC_GET(HCI_SPI_NODE, irq_gpios); variable
80 pin_state = gpio_pin_get_dt(&irq_gpio); in irq_pin_state()
269 ret = gpio_pin_configure_dt(&irq_gpio, GPIO_INPUT); in bt_hci_transport_setup()
274 gpio_init_callback(&irq_gpio_cb, bt_packet_irq_isr, BIT(irq_gpio.pin)); in bt_hci_transport_setup()
275 ret = gpio_add_callback(irq_gpio.port, &irq_gpio_cb); in bt_hci_transport_setup()
303 gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_RISING); in bt_hci_transport_setup()
415 if (!gpio_is_ready_dt(&irq_gpio)) { in bt_apollo_dev_init()
Dspi.c76 static const struct gpio_dt_spec irq_gpio = GPIO_DT_SPEC_INST_GET(0, irq_gpios); variable
387 err = gpio_pin_configure_dt(&irq_gpio, GPIO_INPUT); in bt_spi_open()
392 gpio_init_callback(&gpio_cb, bt_spi_isr, BIT(irq_gpio.pin)); in bt_spi_open()
393 err = gpio_add_callback(irq_gpio.port, &gpio_cb); in bt_spi_open()
399 err = gpio_pin_interrupt_configure_dt(&irq_gpio, GPIO_INT_EDGE_TO_ACTIVE); in bt_spi_open()
437 if (!gpio_is_ready_dt(&irq_gpio)) { in bt_spi_init()
/Zephyr-Core-3.7.0/drivers/ieee802154/
Dieee802154_rf2xx.h78 struct gpio_dt_spec irq_gpio; member
Dieee802154_rf2xx.c737 gpio_pin_interrupt_configure_dt(&conf->irq_gpio, in rf2xx_start()
750 gpio_pin_interrupt_configure_dt(&conf->irq_gpio, GPIO_INT_DISABLE); in rf2xx_stop()
927 BIT(conf->irq_gpio.pin)); in power_on_and_setup()
929 if (gpio_add_callback(conf->irq_gpio.port, &ctx->irq_cb) < 0) { in power_on_and_setup()
942 if (!gpio_is_ready_dt(&conf->irq_gpio)) { in configure_gpios()
946 gpio_pin_configure_dt(&conf->irq_gpio, GPIO_INPUT); in configure_gpios()
947 gpio_pin_interrupt_configure_dt(&conf->irq_gpio, in configure_gpios()
1128 .irq_gpio = GPIO_DT_SPEC_INST_GET(n, irq_gpios), \
Dieee802154_mcr20a.c825 gpio_pin_interrupt_configure_dt(&config->irq_gpio, flags); in enable_irqb_interrupt()
835 BIT(config->irq_gpio.pin)); in setup_gpio_callbacks()
836 gpio_add_callback(config->irq_gpio.port, &mcr20a->irqb_cb); in setup_gpio_callbacks()
1320 pin = gpio_pin_get_dt(&config->irq_gpio); in power_on_and_setup()
1373 if (!gpio_is_ready_dt(&config->irq_gpio)) { in configure_gpios()
1378 gpio_pin_configure_dt(&config->irq_gpio, GPIO_INPUT); in configure_gpios()
1446 .irq_gpio = GPIO_DT_SPEC_INST_GET(0, irqb_gpios),
Dieee802154_dw1000.c94 struct gpio_dt_spec irq_gpio; member
121 .irq_gpio = GPIO_DT_SPEC_INST_GET(0, int_gpios),
330 gpio_pin_interrupt_configure_dt(&hi_cfg->irq_gpio, flags); in dwt_setup_int()
1544 if (!gpio_is_ready_dt(&hi_cfg->irq_gpio)) { in dw1000_init()
1549 if (gpio_pin_configure_dt(&hi_cfg->irq_gpio, GPIO_INPUT)) { in dw1000_init()
1550 LOG_ERR("Unable to configure GPIO pin %u", hi_cfg->irq_gpio.pin); in dw1000_init()
1555 BIT(hi_cfg->irq_gpio.pin)); in dw1000_init()
1557 if (gpio_add_callback(hi_cfg->irq_gpio.port, &(ctx->gpio_cb))) { in dw1000_init()
Dieee802154_mcr20a.h19 struct gpio_dt_spec irq_gpio; member