Lines Matching +full:gpio +full:- +full:n
5 * SPDX-License-Identifier: Apache-2.0
9 * This is not a real GPIO driver. It is used to instantiate struct
10 * devices for the "vnd,gpio" devicetree compatible used in test code.
15 #include <zephyr/drivers/gpio.h>
16 #include <zephyr/drivers/gpio/gpio_utils.h>
32 return -ENOTSUP; in vnd_gpio_pin_configure()
38 return -ENOTSUP; in vnd_gpio_port_get_raw()
45 return -ENOTSUP; in vnd_gpio_port_set_masked_raw()
51 return -ENOTSUP; in vnd_gpio_port_set_bits_raw()
57 return -ENOTSUP; in vnd_gpio_port_clear_bits_raw()
63 return -ENOTSUP; in vnd_gpio_port_toggle_bits()
66 static DEVICE_API(gpio, vnd_gpio_api) = {
75 #define VND_GPIO_INIT(n) \ argument
76 static const struct vnd_gpio_config vnd_gpio_config_##n = { \
78 .port_pin_mask = GPIO_PORT_PIN_MASK_FROM_DT_INST(n), \
82 static struct vnd_gpio_data vnd_gpio_data_##n; \
84 DEVICE_DT_INST_DEFINE(n, NULL, NULL, &vnd_gpio_data_##n, \
85 &vnd_gpio_config_##n, POST_KERNEL, \