Home
last modified time | relevance | path

Searched refs:GPIO_INPUT (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/Zephyr-Core-3.7.0/tests/drivers/gpio/gpio_api_1pin/src/
Dtest_config.c67 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
85 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT_HIGH | GPIO_INPUT); in ZTEST()
95 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
101 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT_LOW | GPIO_INPUT); in ZTEST()
111 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
119 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT); in ZTEST()
191 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | cfg_flag); in ZTEST()
218 GPIO_OPEN_DRAIN | GPIO_INPUT | GPIO_PULL_UP); in ZTEST()
242 GPIO_OPEN_SOURCE | GPIO_INPUT | GPIO_PULL_UP); in ZTEST()
265 GPIO_OPEN_SOURCE | GPIO_INPUT | GPIO_PULL_DOWN); in ZTEST()
[all …]
Dtest_port.c122 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
171 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
211 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
252 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT | in ZTEST()
303 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT | in ZTEST()
347 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
388 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
429 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
466 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
Dtest_pin.c71 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
152 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
189 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT); in ZTEST()
226 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT | in ZTEST()
276 ret = gpio_pin_configure(port, TEST_PIN, GPIO_OUTPUT | GPIO_INPUT | in ZTEST()
Dtest_pin_interrupt.c63 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | GPIO_OUTPUT); in test_gpio_pin_interrupt_edge()
76 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | cfg_out_flag | in test_gpio_pin_interrupt_edge()
137 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | GPIO_OUTPUT); in test_gpio_pin_interrupt_level()
155 ret = gpio_pin_configure(port, TEST_PIN, GPIO_INPUT | cfg_out_flag | in test_gpio_pin_interrupt_level()
/Zephyr-Core-3.7.0/tests/drivers/gpio/gpio_ite_it8xxx2_v2/src/
Dmain.c100 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
114 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_LOW)); in ZTEST()
128 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
152 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
194 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
218 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
248 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
275 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_ACTIVE_HIGH)); in ZTEST()
398 zassert_ok(gpio_pin_configure(gpio_dev, TEST_PIN, GPIO_INPUT | GPIO_PULL_UP)); in ZTEST()
406 zexpect_equal(flags, GPIO_INPUT | GPIO_PULL_UP, "flags=%x", flags); in ZTEST()
[all …]
/Zephyr-Core-3.7.0/tests/drivers/gpio/gpio_basic_api/src/
Dgpio_emul_callback.c46 if ((output_flags & GPIO_OUTPUT) && (input_flags & GPIO_INPUT)) { in gpio_emul_callback_handler()
56 if ((output_flags == GPIO_DISCONNECTED) && (input_flags & GPIO_INPUT)) { in gpio_emul_callback_handler()
Dtest_gpio_port.c78 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT); in setup()
104 rc = gpio_pin_configure(dev, PIN_OUT, GPIO_INPUT); in setup()
399 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT); in check_input_levels()
414 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT | GPIO_ACTIVE_LOW); in check_input_levels()
449 rc = gpio_pin_configure(dev, PIN_OUT, GPIO_INPUT); in check_pulls()
454 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT | GPIO_PULL_UP); in check_pulls()
466 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT | GPIO_PULL_DOWN); in check_pulls()
479 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT | GPIO_ACTIVE_LOW | GPIO_PULL_UP); in check_pulls()
493 rc = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT | GPIO_ACTIVE_LOW | GPIO_PULL_DOWN); in check_pulls()
Dtest_config_trigger.c34 ret = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT); in ZTEST()
86 ret = gpio_pin_configure(dev, PIN_IN, GPIO_INPUT); in ZTEST()
/Zephyr-Core-3.7.0/drivers/lora/
Dsx126x_standalone.c74 gpio_pin_configure_dt(&sx126x_gpio_busy, GPIO_INPUT) || in sx126x_variant_init()
75 gpio_pin_configure_dt(&sx126x_gpio_dio1, GPIO_INPUT)) { in sx126x_variant_init()
/Zephyr-Core-3.7.0/samples/boards/bbc_microbit/line_follower_robot/src/
Dmain.c112 gpio_pin_configure_dt(&left_gpio, GPIO_INPUT); in main()
113 gpio_pin_configure_dt(&right_gpio, GPIO_INPUT); in main()
/Zephyr-Core-3.7.0/samples/boards/bbc_microbit/sound/src/
Dmain.c101 gpio_pin_configure_dt(&sw0_gpio, GPIO_INPUT); in main()
102 gpio_pin_configure_dt(&sw1_gpio, GPIO_INPUT); in main()
/Zephyr-Core-3.7.0/drivers/gpio/
Dgpio_efinix_sapphire.c23 (GPIO_INPUT | GPIO_OUTPUT | GPIO_OUTPUT_INIT_LOW | GPIO_OUTPUT_INIT_HIGH | \
62 if (type == GPIO_INPUT) { in cfg_output_enable_bit()
114 cfg_output_enable_bit(config, BIT(pin), GPIO_INPUT); in gpio_efinix_sapphire_config()
Dgpio_ads114s0x.c41 if ((flags & (GPIO_INPUT | GPIO_OUTPUT)) == GPIO_DISCONNECTED) { in gpio_ads114s0x_config()
59 case GPIO_INPUT: in gpio_ads114s0x_config()
Dgpio_axp192.c113 } else if ((flags & GPIO_INPUT) != 0) { in gpio_axp192_configure()
193 *out_flags |= GPIO_INPUT; in gpio_axp192_get_config()
253 } else if (0 != (flags & GPIO_INPUT)) { in gpio_axp192_port_get_direction()
Dgpio_creg_gpio.c123 io_flags = flags & (GPIO_INPUT | GPIO_OUTPUT); in pin_config()
125 || (io_flags == (GPIO_INPUT | GPIO_OUTPUT))) { in pin_config()
Dgpio_rv32m1.c91 if ((flags & GPIO_INT_ENABLE) && ((flags & GPIO_INPUT) == 0)) { in gpio_rv32m1_configure()
95 if (((flags & GPIO_INPUT) != 0) && ((flags & GPIO_OUTPUT) != 0)) { in gpio_rv32m1_configure()
117 case GPIO_INPUT: in gpio_rv32m1_configure()
/Zephyr-Core-3.7.0/tests/drivers/gpio/gpio_get_direction/src/
Dmain.c73 fixture->flags = GPIO_INPUT; in ZTEST_F()
111 fixture->flags = GPIO_INPUT | GPIO_OUTPUT | GPIO_OUTPUT_INIT_LOW; in ZTEST_F()
/Zephyr-Core-3.7.0/drivers/sensor/ti/ina23x/
Dina23x_trigger.c32 ret = gpio_pin_configure_dt(alert_gpio, GPIO_INPUT); in ina23x_trigger_mode_init()
/Zephyr-Core-3.7.0/samples/boards/nrf/dynamic_pinctrl/src/
Dremap.c42 ret = gpio_pin_configure_dt(&button, GPIO_INPUT); in remap_pins()
/Zephyr-Core-3.7.0/samples/bluetooth/st_ble_sensor/src/
Dbutton_svc.c37 ret = gpio_pin_configure_dt(&button, GPIO_INPUT); in button_init()
/Zephyr-Core-3.7.0/samples/boards/ti/cc13x2_cc26x2/system_off/src/
Dmain.c40 gpio_pin_configure_dt(&sw0_gpio, GPIO_INPUT); in main()
Dext_flash.c98 gpio_pin_configure(dev, DIO8_PIN, GPIO_INPUT | GPIO_PULL_DOWN); in CC1352R1_LAUNCHXL_shutDownExtFlash()
/Zephyr-Core-3.7.0/drivers/sensor/ti/bq274xx/
Dbq274xx_trigger.c95 ret = gpio_pin_configure_dt(&config->int_gpios, GPIO_INPUT); in bq274xx_trigger_mode_init()
137 ret = gpio_pin_configure_dt(&config->int_gpios, GPIO_INPUT); in bq274xx_trigger_set()
/Zephyr-Core-3.7.0/samples/boards/nrf/system_off/src/
Dmain.c49 rc = gpio_pin_configure_dt(&sw0, GPIO_INPUT); in main()
/Zephyr-Core-3.7.0/drivers/mdio/
Dmdio_gpio.c41 gpio_pin_configure_dt(&dev_cfg->mdio_gpio, dir ? GPIO_OUTPUT_ACTIVE : GPIO_INPUT); in mdio_gpio_dir()
151 rc = gpio_pin_configure_dt(&dev_cfg->mdio_gpio, GPIO_INPUT); in mdio_gpio_initialize()

12345678910>>...12