Searched refs:dev_out (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/ |
D | test_gpio_port.c | 13 static const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); variable 51 rc = gpio_port_set_bits_raw(dev_out, BIT(PIN_OUT)); in raw_out() 53 rc = gpio_port_clear_bits_raw(dev_out, BIT(PIN_OUT)); in raw_out() 65 rc = gpio_port_set_bits(dev_out, BIT(PIN_OUT)); in logic_out() 67 rc = gpio_port_clear_bits(dev_out, BIT(PIN_OUT)); in logic_out() 81 TC_PRINT("Validate device %s and %s\n", dev_in->name, dev_out->name); in setup() 82 zassert_true(device_is_ready(dev_out), "GPIO dev is not ready"); in setup() 84 TC_PRINT("Check %s output %d connected to %s input %d\n", dev_out->name, PIN_OUT, in setup() 91 rc = gpio_pin_configure(dev_out, PIN_OUT, GPIO_OUTPUT_LOW); in setup() 109 rc = gpio_pin_configure(dev_out, PIN_OUT, GPIO_DISCONNECTED); in setup() [all …]
|
D | test_callback_manage.c | 35 static int init_callback(const struct device *dev_in, const struct device *dev_out, in init_callback() argument 41 rc = gpio_pin_interrupt_configure(dev_out, PIN_OUT, GPIO_INT_DISABLE); in init_callback() 45 rc = gpio_pin_configure(dev_out, PIN_OUT, (GPIO_OUTPUT_LOW | PIN_OUT_FLAGS)); in init_callback() 66 static void trigger_callback(const struct device *dev_in, const struct device *dev_out, in trigger_callback() argument 69 gpio_pin_set(dev_out, PIN_OUT, 0); in trigger_callback() 80 gpio_pin_set(dev_out, PIN_OUT, 1); in trigger_callback() 87 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in test_callback_add_remove() local 90 int rc = init_callback(dev_in, dev_out, callback_1, callback_2); in test_callback_add_remove() 100 trigger_callback(dev_in, dev_out, 1); in test_callback_add_remove() 109 trigger_callback(dev_in, dev_out, 1); in test_callback_add_remove() [all …]
|
D | test_config_trigger.c | 26 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in ZTEST() local 32 ret = gpio_pin_configure(dev_out, PIN_OUT, GPIO_DISCONNECTED); in ZTEST() 54 ret = gpio_pin_configure(dev_out, PIN_OUT, GPIO_OUTPUT | GPIO_OPEN_DRAIN | GPIO_PULL_UP); in ZTEST() 64 ret = gpio_pin_configure(dev_out, PIN_OUT, GPIO_OUTPUT | GPIO_OPEN_DRAIN | GPIO_PULL_UP); in ZTEST() 77 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in ZTEST() local 83 ret = gpio_pin_configure(dev_out, PIN_OUT, GPIO_DISCONNECTED); in ZTEST() 105 ret = gpio_pin_configure(dev_out, PIN_OUT, GPIO_OUTPUT | GPIO_OPEN_DRAIN | GPIO_PULL_UP); in ZTEST()
|
D | test_callback_trigger.c | 16 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in callback() local 27 gpio_pin_toggle(dev_out, PIN_OUT); in callback() 30 gpio_pin_set(dev_out, PIN_OUT, 0); in callback() 38 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in test_callback() local 42 gpio_pin_interrupt_configure(dev_out, PIN_OUT, GPIO_INT_DISABLE); in test_callback() 51 int rc = gpio_pin_configure(dev_out, PIN_OUT, out_flags); in test_callback() 87 gpio_pin_set(dev_out, PIN_OUT, 1); in test_callback()
|