/Zephyr-latest/samples/drivers/lcd_hd44780/src/ |
D | main.c | 182 void _pi_lcd_toggle_enable(const struct device *gpio_dev) in _pi_lcd_toggle_enable() argument 184 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC25_E, LOW); in _pi_lcd_toggle_enable() 186 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC25_E, HIGH); in _pi_lcd_toggle_enable() 188 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC25_E, LOW); in _pi_lcd_toggle_enable() 193 void _pi_lcd_4bits_wr(const struct device *gpio_dev, uint8_t bits) in _pi_lcd_4bits_wr() argument 196 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC24_D4, LOW); in _pi_lcd_4bits_wr() 197 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC23_D5, LOW); in _pi_lcd_4bits_wr() 198 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC22_D6, LOW); in _pi_lcd_4bits_wr() 199 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC21_D7, LOW); in _pi_lcd_4bits_wr() 201 GPIO_PIN_WR(gpio_dev, GPIO_PIN_PC24_D4, HIGH); in _pi_lcd_4bits_wr() [all …]
|
/Zephyr-latest/samples/drivers/led/apa102c_bitbang/src/ |
D | main.c | 50 void send_rgb(const struct device *gpio_dev, uint32_t rgb) in send_rgb() argument 56 gpio_pin_set_raw(gpio_dev, GPIO_DATA_PIN, (rgb & BIT(31)) != 0); in send_rgb() 59 gpio_pin_set_raw(gpio_dev, GPIO_CLK_PIN, 1); in send_rgb() 60 gpio_pin_set_raw(gpio_dev, GPIO_CLK_PIN, 0); in send_rgb() 68 const struct device *gpio_dev; in main() local 73 gpio_dev = DEVICE_DT_GET(DT_ALIAS(gpio_0)); in main() 74 if (!device_is_ready(gpio_dev)) { in main() 75 printk("GPIO device %s is not ready!\n", gpio_dev->name); in main() 80 ret = gpio_pin_configure(gpio_dev, GPIO_DATA_PIN, GPIO_OUTPUT); in main() 85 ret = gpio_pin_configure(gpio_dev, GPIO_CLK_PIN, GPIO_OUTPUT); in main() [all …]
|
/Zephyr-latest/tests/drivers/gpio/gpio_ite_it8xxx2_v2/src/ |
D | main.c | 15 const struct device *const gpio_dev = DEVICE_DT_GET(MY_GPIO); variable 90 zassert_ok(gpio_remove_callback(gpio_dev, &callback_struct)); in after_test() 99 zassert_true(device_is_ready(gpio_dev)); in ZTEST() 100 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST() 106 zassert_false(gpio_pin_get(gpio_dev, TEST_PIN)); in ZTEST() 108 zassert_true(gpio_pin_get(gpio_dev, TEST_PIN)); in ZTEST() 113 zassert_true(device_is_ready(gpio_dev)); in ZTEST() 114 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_LOW)); in ZTEST() 120 zassert_true(gpio_pin_get(gpio_dev, TEST_PIN)); in ZTEST() 122 zassert_false(gpio_pin_get(gpio_dev, TEST_PIN)); in ZTEST() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_sedi.c | 38 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_suspend_device() local 45 ret = sedi_gpio_set_power(gpio_dev, SEDI_POWER_SUSPEND); in gpio_sedi_suspend_device() 57 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_resume_device_from_suspend() local 60 ret = sedi_gpio_set_power(gpio_dev, SEDI_POWER_FULL); in gpio_sedi_resume_device_from_suspend() 108 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_write_raw() local 119 sedi_gpio_write_pin(gpio_dev, i, val); in gpio_sedi_write_raw() 132 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_configure() local 147 sedi_gpio_config_pin(gpio_dev, pin, pin_config); in gpio_sedi_configure() 150 sedi_gpio_write_pin(gpio_dev, pin, 1); in gpio_sedi_configure() 152 sedi_gpio_write_pin(gpio_dev, pin, 0); in gpio_sedi_configure() [all …]
|
D | gpio_esp32.c | 77 gpio_dev_t *const gpio_dev; member 290 *value = cfg->gpio_dev->in; in gpio_esp32_port_get_raw() 293 *value = cfg->gpio_dev->in1.data; in gpio_esp32_port_get_raw() 308 cfg->gpio_dev->out = (cfg->gpio_dev->out & ~mask) | (mask & value); in gpio_esp32_port_set_masked_raw() 311 cfg->gpio_dev->out1.data = (cfg->gpio_dev->out1.data & ~mask) | (mask & value); in gpio_esp32_port_set_masked_raw() 326 cfg->gpio_dev->out_w1ts = pins; in gpio_esp32_port_set_bits_raw() 329 cfg->gpio_dev->out1_w1ts.data = pins; in gpio_esp32_port_set_bits_raw() 342 cfg->gpio_dev->out_w1tc = pins; in gpio_esp32_port_clear_bits_raw() 345 cfg->gpio_dev->out1_w1tc.data = pins; in gpio_esp32_port_clear_bits_raw() 359 cfg->gpio_dev->out ^= pins; in gpio_esp32_port_toggle_bits() [all …]
|
D | gpio_renesas_rz.c | 42 const struct device *gpio_dev; member 279 data->tint_data[tint_num].gpio_dev = NULL; in gpio_rz_int_disable() 285 static int gpio_rz_int_enable(const struct device *int_dev, const struct device *gpio_dev, in gpio_rz_int_enable() argument 289 const struct gpio_rz_config *gpio_config = gpio_dev->config; in gpio_rz_int_enable() 305 int_data->tint_data[tint_num].gpio_dev = gpio_dev; in gpio_rz_int_enable() 400 gpio_rz_isr(data->tint_data[tint_num].gpio_dev, data->tint_data[tint_num].pin); in gpio_rz_tint_isr()
|
D | gpio_adp5585.c | 426 parent_data->child.gpio_dev = dev; in gpio_adp5585_init()
|
D | gpio_aw9523b.c | 351 static __maybe_unused void gpio_aw9523b_int_handler(const struct device *gpio_dev, in gpio_aw9523b_int_handler() argument
|
/Zephyr-latest/drivers/pinctrl/ |
D | pinctrl_esp32.c | 254 gpio_dev_t *const gpio_dev = in esp32_pin_configure() local 256 gpio_dev->out_w1ts = BIT(pin_num); in esp32_pin_configure() 259 gpio_dev_t *const gpio_dev = in esp32_pin_configure() local 261 gpio_dev->out1_w1ts.data = BIT(pin_num - 32); in esp32_pin_configure() 268 gpio_dev_t *const gpio_dev = in esp32_pin_configure() local 270 gpio_dev->out_w1tc = BIT(pin_num); in esp32_pin_configure() 273 gpio_dev_t *const gpio_dev = in esp32_pin_configure() local 275 gpio_dev->out1_w1tc.data = BIT(pin_num - 32); in esp32_pin_configure()
|
/Zephyr-latest/drivers/sensor/grow_r502a/ |
D | grow_r502a_trigger.c | 64 setup_int(drv_data->gpio_dev, false); in grow_r502a_gpio_callback() 83 process_int(drv_data->gpio_dev); in grow_r502a_thread() 93 process_int(drv_data->gpio_dev); in grow_r502a_work_cb() 113 drv_data->gpio_dev = dev; in grow_r502a_init_interrupt()
|
D | grow_r502a.h | 199 const struct device *gpio_dev; member
|
/Zephyr-latest/tests/drivers/sensor/hc-sr04/src/ |
D | main.c | 54 const struct device *gpio_dev = DEVICE_DT_GET(HC_SR04_GPIO_IN); in hcsr04_setup() local 57 zassert_not_null(gpio_dev); in hcsr04_setup() 62 zassert_true(device_is_ready(gpio_dev), "GPIO dev is not ready"); in hcsr04_setup() 65 zassert_false(gpio_add_callback(gpio_dev, &fixture.emul.cb), in hcsr04_setup()
|
/Zephyr-latest/drivers/sensor/memsic/mc3419/ |
D | mc3419_trigger.c | 19 const struct mc3419_config *cfg = data->gpio_dev->config; in mc3419_gpio_callback() 70 mc3419_process_int(data->gpio_dev); in mc3419_thread() 79 mc3419_process_int(data->gpio_dev); in mc3419_work_cb() 148 data->gpio_dev = dev; in mc3419_trigger_init()
|
D | mc3419.h | 84 const struct device *gpio_dev; member
|
/Zephyr-latest/drivers/mfd/ |
D | mfd_adp5585.c | 70 if ((reg_int_status & ADP5585_INT_GPI) && device_is_ready(data->child.gpio_dev)) { in mfd_adp5585_work_handler() 71 (void)gpio_adp5585_irq_handler(data->child.gpio_dev); in mfd_adp5585_work_handler()
|
/Zephyr-latest/include/zephyr/drivers/mfd/ |
D | adp5585.h | 108 const struct device *gpio_dev; member
|
/Zephyr-latest/subsys/usb/device/ |
D | usb_device.c | 1301 struct gpio_dt_spec gpio_dev = GPIO_DT_SPEC_GET(USB_DEV_NODE, vbus_gpios); in usb_vbus_set() local 1303 if (!gpio_is_ready_dt(&gpio_dev)) { in usb_vbus_set() 1304 LOG_DBG("USB requires GPIO. Device %s is not ready!", gpio_dev.port->name); in usb_vbus_set() 1309 ret = gpio_pin_configure_dt(&gpio_dev, GPIO_OUTPUT); in usb_vbus_set() 1314 ret = gpio_pin_set_dt(&gpio_dev, on == true ? 1 : 0); in usb_vbus_set()
|
/Zephyr-latest/drivers/input/ |
D | input_pat912x.c | 139 static void pat912x_motion_handler(const struct device *gpio_dev, in pat912x_motion_handler() argument
|
D | input_gpio_kbd_matrix.c | 296 static void gpio_kbd_matrix_cb_##n(const struct device *gpio_dev, \
|
D | input_gpio_qdec.c | 241 static void gpio_qdec_cb(const struct device *gpio_dev, struct gpio_callback *cb, in gpio_qdec_cb() argument
|
D | input_paw32xx.c | 230 static void paw32xx_motion_handler(const struct device *gpio_dev, in paw32xx_motion_handler() argument
|
D | input_pmw3610.c | 253 static void pmw3610_motion_handler(const struct device *gpio_dev, in pmw3610_motion_handler() argument
|
/Zephyr-latest/drivers/adc/ |
D | adc_ads1x1x.c | 681 static void ads1x1x_conv_ready_cb(const struct device *gpio_dev, in ads1x1x_conv_ready_cb() argument 690 ARG_UNUSED(gpio_dev); in ads1x1x_conv_ready_cb()
|
/Zephyr-latest/drivers/display/ |
D | display_rm67162.c | 205 static void rm67162_te_isr_handler(const struct device *gpio_dev, in rm67162_te_isr_handler() argument
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.1.rst | 129 * Deprecated the ``gpio_dev``, ``gpio_pin``, and ``gpio_dt_flags`` members in
|